123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- #ifndef HAL_EICU_H_
- #define HAL_EICU_H_
- #if (HAL_USE_EICU == TRUE) || defined(__DOXYGEN__)
- typedef enum {
- EICU_UNINIT,
- EICU_STOP,
- EICU_READY,
- EICU_WAITING,
- EICU_ACTIVE,
- EICU_IDLE
- } eicustate_t;
- typedef enum {
- EICU_CH_IDLE,
- EICU_CH_ACTIVE
- } eicuchannelstate_t;
- typedef enum {
- EICU_CHANNEL_1,
- EICU_CHANNEL_2,
- EICU_CHANNEL_3,
- EICU_CHANNEL_4,
- EICU_CHANNEL_ENUM_END
- } eicuchannel_t;
- typedef struct EICUDriver EICUDriver;
- typedef void (*eicucallback_t)(EICUDriver *eicup, eicuchannel_t channel);
- #include "hal_eicu_lld.h"
- #define eicuEnableI(eicup) eicu_lld_enable(eicup)
- #define eicuDisableI(eicup) eicu_lld_disable(eicup)
- #ifdef __cplusplus
- extern "C" {
- #endif
- void eicuInit(void);
- void eicuObjectInit(EICUDriver *eicup);
- void eicuStart(EICUDriver *eicup, const EICUConfig *config);
- void eicuStop(EICUDriver *eicup);
- void eicuEnable(EICUDriver *eicup);
- void eicuDisable(EICUDriver *eicup);
- #ifdef __cplusplus
- }
- #endif
- #endif
- #endif
|