iostate.h 300 B

12345678910111213141516
  1. #ifndef _IO_state_H__
  2. #define _IO_state_H__
  3. typedef struct{
  4. uint16_t hall_detect:1;
  5. uint16_t charger_detect :1;
  6. uint16_t aux_lock_detect:1;
  7. uint16_t pwr_good_detect:1;
  8. uint16_t dcdc_good_detect:1;
  9. }io_state_t;
  10. void io_state_init(void);
  11. io_state_t *io_state(void);
  12. #endif /* _IO_state_H__ */