rad_sens_i2c.h 404 B

123456789101112131415
  1. #include <furi_hal_i2c.h>
  2. // Rad Sens address
  3. #define RAD_SENS_ADDRESS (0x66 << 1)
  4. #define RAD_SENS_ID_RG 0x00
  5. #define RAD_SENS_ID 0x7D
  6. #define RAD_SENS_DYN_INTENSITY_RG 0x03
  7. #define RAD_SENS_STAT_INTENSITY_RG 0x06
  8. #define RAD_SENS_IMP_CNT_RG 0x09
  9. // External I2C BUS
  10. #define I2C_BUS &furi_hal_i2c_handle_external
  11. typedef struct RadSensModel RadSensModel;
  12. bool rad_sens_read_data(RadSensModel* model);