| 123456789101112131415161718192021222324 |
- #ifndef _CS1180_H__
- #define _CS1180_H__
- #define CS1180_GAIN_1X 0x0
- #define CS1180_GAIN_2X 0x1
- #define CS1180_GAIN_4X 0x2
- #define CS1180_GAIN_8X 0x3
- #define CS1180_GAIN_16X 0x4
- #define CS1180_GAIN_32X 0x5
- #define CS1180_GAIN_64X 0x6
- #define CS1180_GAIN_128X 0x7
- void cs1180_adc_init(void);
- void cs1180_adc_shutdown(void);
- int cs1180_is_ready(void);
- int cs1180_adc_set_gain(int gain);
- void cs1180_sys_offset_calibrate(void);
- float cs1180_adc_sample(int *valide);
- int cs1180_change_gain(int current);
- void cs1180_log(void);
- void cs1180_read_all_regs(void);
- #endif /* _CS1180_H__ */
|