| 123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef CX_CHLCD_TYPES_H_INCLUDED
- #define CX_CHLCD_TYPES_H_INCLUDED
- #include <stdint.h>
- #include <stdbool.h>
- #ifdef CHLCD_ON_ESP
- #define chlcd_pin_t gpio_num_t
- #endif
- #ifndef chlcd_pin_t
- #define chlcd_pin_t uint32_t
- #endif
- typedef uint8_t chlcd_size_t;
- typedef uint8_t chlcd_bitcount_t;
- struct chlcd_display_s;
- struct chlcd_connector_s;
- enum chlcd_command_e;
- enum chlcd_error_e;
- typedef uint8_t chlcd_data_t;
- typedef enum chlcd_error_e (*chlcd_sender_t)(
- void *self,
- chlcd_data_t content,
- bool is_command,
- bool is_half_word
- );
- typedef enum chlcd_error_r (*chlcd_decoder_t)(
- enum chlcd_command_e command,
- chlcd_data_t content,
- chlcd_sender_t sender
- );
- #endif
|