Actuator.h 506 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __EXTENDER_H
  2. #define __EXTENDER_H
  3. #include <stdint.h>
  4. #include "confOrdi.h"
  5. typedef struct{
  6. uint8_t type;
  7. uint8_t address;
  8. uint8_t bobine;
  9. uint8_t active;
  10. }Actuator;
  11. Actuator Actuator_t[12];
  12. extern uint8_t gl_osmo1,gl_osmo2;
  13. void Actuator_init();
  14. void Actuator_start(uint8_t type);
  15. void Actuator_stop(uint8_t type);
  16. void Actuator_osmo_start(uint8_t type);
  17. void Actuator_write(uint8_t add,uint8_t* value);
  18. void Actuator_read(uint8_t add,uint8_t* value);
  19. void Actuator_Satus();
  20. #endif