types.h 627 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef CX_CHLCD_TYPES_H_INCLUDED
  2. #define CX_CHLCD_TYPES_H_INCLUDED
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. #include "cx/chlcd/pins.h"
  6. typedef uint8_t chlcd_size_t;
  7. typedef uint8_t chlcd_bitcount_t;
  8. struct chlcd_display_s;
  9. struct chlcd_connector_s;
  10. enum chlcd_command_e;
  11. enum chlcd_error_e;
  12. typedef uint8_t chlcd_data_t;
  13. typedef enum chlcd_error_e (*chlcd_sender_t)(
  14. void *self,
  15. chlcd_data_t content,
  16. bool is_command,
  17. bool is_half_word
  18. );
  19. typedef enum chlcd_error_e (*chlcd_decoder_t)(
  20. enum chlcd_command_e command,
  21. chlcd_data_t content,
  22. void *connector,
  23. chlcd_sender_t sender
  24. );
  25. #endif