SR04.h 310 B

123456789101112131415161718192021
  1. #ifndef __SR04_H_
  2. #define __SR04_H_
  3. #include <main.h>
  4. typedef struct
  5. {
  6. void (*Init)(void);
  7. uint16_t (*Read)(void);
  8. }SR04_t;
  9. /* extern variables ------------------------------------------------*/
  10. extern SR04_t SR04;
  11. /* extern function prototypes --------------------------------------*/
  12. #endif