Sleep( ) built-in function, Syntax – Echelon Neuron C User Manual
Page 155
Neuron C Reference Guide
135
void s32_ge (const s32_type *
arg1
, const s32_type *
arg2
);
void s32_gt (const s32_type *
arg1
, const s32_type *
arg2
);
void s32_inc (s32_type *
arg1
);
void s32_le (const s32_type *
arg1
, const s32_type *
arg2
);
void s32_lt (const s32_type *
arg1
, const s32_type *
arg2
);
void s32_max (const s32_type *
arg1
, const s32_type *
arg2
, s32_type *
arg3
);
void s32_min (const s32_type *
arg1
, const s32_type *
arg2
, s32_type *
arg3
);
void s32_mul (const s32_type *
arg1
, const s32_type *
arg2
, s32_type *
arg3
);
void s32_mul2 (s32_type *
arg1
);
void s32_ne (const s32_type *
arg1
, const s32_type *
arg2
);
void s32_neg (const s32_type *
arg1
, s32_type *
arg2
);
void s32_rand (s32_type *
arg1
);
void s32_rem (const s32_type *
arg1
, const s32_type *
arg2
, s32_type *
arg3
);
int s32_sign (const s32_type *
arg1
);
void s32_sub (const s32_type *
arg1
, const s32_type *
arg2
, s32_type *
arg3
);
void s32_to_ascii (const s32_type *
arg1
, char *
arg2
);
signed long s32_to_slong (const s32_type *
arg1
);
unsigned long s32_to_ulong (const s32_type *
arg1
);
The signed 32-bit arithmetic support functions are part of the extended
arithmetic library. See
Signed 32-Bit Integer Support Functions
on page 52 for a
detailed explanation of the extended arithmetic support functions that are
available.
sleep( )
Built-in Function
For Series 3100 devices, the sleep( ) built-in function puts the Neuron Chip or
Smart Transceiver in a low-power state. The processors are halted, and the
internal oscillator is turned off. Any of the three syntactical forms shown below
can be used. The second form uses a declared I/O object’s pin as a wakeup pin.
The third form directly specifies a pin to be used for a wakeup event.
Series 5000 devices do not support sleep mode.
The Neuron Chip or Smart Transceiver wakes up when any of the following
conditions occurs:
• A message arrives (unless the COMM_IGNORE flag is set)
• The service pin is pressed
• The specified input object transition occurs (if one is specified)
See also
Chapter 7,
Additional Features,
of the
Neuron C Programmer's Guide
.
Syntax
void sleep (unsigned int
flags
);