32 #ifndef BSP430_SENSORS_HH10D_H
33 #define BSP430_SENSORS_HH10D_H
66 #define BSP430_SENSORS_HH10D_I2C_ADDRESS 0x51
70 #define BSP430_SENSORS_HH10D_FLAG_VALID_CAPTURE 0x01
74 #define BSP430_SENSORS_HH10D_FLAG_VALID_COUNT 0x02
79 #define BSP430_SENSORS_HH10D_FLAG_WAKE_ON_COUNT 0x04
85 #define BSP430_SENSORS_HH10D_FLAG_AUTOSAMPLE 0x08
182 unsigned int interval_s)
195 return (
unsigned int) (ul / 4096);
unsigned int flags
Definition: hh10d.h:121
unsigned int last_capture
Definition: hh10d.h:113
struct sBSP430sensorsHH10Dstate sBSP430sensorsHH10Dstate
sBSP430halISRIndexedChainNode cb
Definition: hh10d.h:92
int iBSP430sensorsHH10DgetCalibration(hBSP430halSERIAL i2c, hBSP430sensorsHH10Dstate hh10d)
#define BSP430_SENSORS_HH10D_FLAG_VALID_COUNT
Definition: hh10d.h:74
static BSP430_CORE_INLINE int iBSP430sensorsHH10Dconvert_ppth_ni(hBSP430sensorsHH10Dstate hh10d, unsigned int interval_s)
Definition: hh10d.h:181
Definition: serial_.h:193
unsigned int interval_tck
Definition: hh10d.h:109
Hardware presentation/abstraction for generic timers (Timer_A/Timer_B)
#define BSP430_CORE_INLINE
Definition: core.h:439
Declarations for abstracted serial interface.
unsigned int cal_sens
Definition: hh10d.h:100
unsigned int cal_offs
Definition: hh10d.h:96
int iBSP430sensorsHH10DperiodicCallback_ni(const struct sBSP430halISRIndexedChainNode *cb, void *context, int idx)
sBSP430sensorsHH10Dstate * hBSP430sensorsHH10Dstate
Definition: hh10d.h:125
unsigned int last_period_count
Definition: hh10d.h:118
volatile sBSP430hplTIMER * freq_timer
Definition: hh10d.h:103