9 #define TEMP_AGAIN (int16_t)0x8000
20 extern temp_t temps[];
22 typedef void temp_init_fn(
void);
23 typedef void temp_setup_fn(uint8_t devno);
24 typedef int16_t temp_poll_fn(uint8_t devno);
33 temp_init_fn temp_init_ ## _s; \
34 temp_setup_fn temp_setup_ ## _s; \
35 temp_poll_fn temp_poll_ ## _s;
37 #define TFUNCPTRS(_s) \
44 #define TEMP_TC_DEFINE(x) \
46 #include "_temp_defs.h"
50 #define TEMP_MASK ((1<<5)-1) // drievr number
51 #define TEMP_ALERT (1<<5) // trigger an alarm when stepping over boundary
52 #define TEMP_IS_ALERT_L (1<<6) // alarm triggered (low)?
53 #define TEMP_IS_ALERT_H (1<<7) // alarm triggered (high)?
55 #ifdef CONDITIONAL_SEARCH
57 extern uint8_t temp_changed_cache;
58 static inline char temp_alert(
void) {
59 if (temp_changed_cache)
65 #define temp_alert() 0
70 #define alert_temp() 0
72 #endif // any inputs or outputs at all
void setup()
Definition: Due_AS7265X_Spectrometer.ino:55
def init
Definition: ow-slave-test.py:11