Echelon Neuron C User Manual

Page 10

Advertising
background image

x

The resp_receive( ) Function ........................................................139

Format of a Response....................................................................139

Request/Response Examples............................................................... 140

Comparison of resp_arrives and msg_succeeds................................. 141

Idempotent Versus Non-Idempotent Requests.................................. 141

Application Buffers .................................................................................... 142

Allocating Application Buffers............................................................143

Chapter 7. Additional Features......................................................................145

The Scheduler............................................................................................. 146

Scheduler Reset Mechanism ..................................................................... 146

Scheduler Example..............................................................................148

Bypass Mode............................................................................................... 149

The post_events( ) Function................................................................149

Watchdog Timer ......................................................................................... 150

Additional Predefined Events ................................................................... 151

Going Offline in Bypass Mode ............................................................ 152

Wink Event ..........................................................................................152

Interrupts ................................................................................................... 153

Interrupt Sources ................................................................................ 153

I/O Interrupts ................................................................................154

Timer/Counter Interrupts ............................................................ 154

Periodic System Timer Interrupts ............................................... 154

Defining an Interrupt Task ................................................................ 155

Defining an I/O Interrupt Task.................................................... 155

Defining a Timer/Counter Interrupt Task .................................. 156

Defining a System Timer Interrupt Task.................................... 158

Controlling Interrupts......................................................................... 159

Sharing Data with an Interrupt Task................................................ 161

Interrupt Latency ................................................................................162

Debugging Interrupt Tasks................................................................. 164

Restrictions for Using Interrupts ....................................................... 165

Sleep Mode..................................................................................................165

Flushing the Neuron Chip or Smart Transceiver ............................. 166

The flush( ) and flush_cancel( ) Functions ..................................166

flush_completes Event .................................................................. 166

Putting the Device to Sleep................................................................. 166

Forced Sleep......................................................................................... 168

Error Handling...........................................................................................168

Resetting the Device............................................................................ 169

Restarting the Application.................................................................. 169

Taking an Application Offline ............................................................ 170

Disabling a Functional Block.............................................................. 170

Changing Functional Block Status..................................................... 171

Logging Application Errors................................................................. 171

System Errors ...................................................................................... 171

Access to Device Status and Statistics ..................................................... 172

Chapter 8. Memory Management...................................................................173

Memory Use................................................................................................174

RAM Use ..............................................................................................174

EEPROM Use ...................................................................................... 174

Using Neuron Chip Memory ..................................................................... 176

Chips with Off-Chip Memory.............................................................. 176

Advertising