fome-fw/firmware/hw_layer/sensors/CJ125.h

27 lines
538 B
C
Raw Normal View History

2016-07-16 23:03:46 -07:00
/*
* @file CJ125.h
*
* @date: Jul 17, 2016
2017-01-03 03:05:22 -08:00
* @author Andrey Belomutskiy, (c) 2012-2017
2016-07-16 23:03:46 -07:00
*/
#ifndef HW_LAYER_SENSORS_CJ125_H_
#define HW_LAYER_SENSORS_CJ125_H_
2016-07-25 19:01:42 -07:00
#define IDENT_REG_RD 0x48 // Read Identity Register, decimal 72
#define INIT_REG1_WR 0x56 // Write To Initialization Register 1, decimal 86
#define CJ125_NORMAL 0x89 // 137 decimal
#define CJ125_CALBRT 0x9D // 157 decimal
2016-07-16 23:03:46 -07:00
2016-07-30 18:03:22 -07:00
#define CJ125_IDENTT 0x60
2016-07-26 19:01:50 -07:00
void initCJ125(Logging *shared);
2016-07-16 23:03:46 -07:00
2016-07-25 19:01:42 -07:00
typedef enum {
CJ125_IDLE = 0
} cj125_state_e;
2016-07-16 23:03:46 -07:00
#endif /* HW_LAYER_SENSORS_CJ125_H_ */