51 #include <ti/sysbios/knl/Clock.h>
52 #include <ti/sysbios/knl/Task.h>
59 #define ST_ASSERT(cond) ST( if (!(cond)) {SensorI2C_deselect(); return false;})
62 #define ST_ASSERT_V(cond) ST( if (!(cond)) {SensorI2C_deselect(); return;} )
65 #define ST(x) do { x } while (__LINE__ == -1)
68 #define HI_UINT16(a) (((a) >> 8) & 0xFF)
69 #define LO_UINT16(a) ((a) & 0xFF)
70 #define SWAP(v) ((LO_UINT16(v) << 8) | HI_UINT16(v))
73 #define DELAY_MS(i) (Task_sleep(((i) * 1000) / Clock_tickPeriod))
74 #define DELAY_US(i) (Task_sleep(((i) * 1) / Clock_tickPeriod))
75 #define MS_2_TICKS(ms) (((ms) * 1000) / Clock_tickPeriod)
void SensorUtil_convertToLe(uint8_t *data, uint8_t len)
uint16_t SensorUtil_intToSfloat(int data)
float SensorUtil_sfloatToFloat(uint16_t rawData)
uint16_t SensorUtil_floatToSfloat(float data)