2016-07-16 23:03:46 -07:00
|
|
|
/*
|
|
|
|
* @file CJ125.h
|
|
|
|
*
|
|
|
|
* @date: Jul 17, 2016
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2016
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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-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_ */
|