This commit is contained in:
2020-11-16 17:53:18 +01:00
parent e239655e7f
commit 54e6e448d8
3 changed files with 74 additions and 18 deletions

View File

@ -26,7 +26,8 @@ typedef struct {
typedef enum {
MBCRR_TRIGGERED = 0,
MBCRR_BUSY = 1
MBCRR_BUSY = 1,
MBCRR_DISABLED = 2
} e_mbusCommRequestResult;
typedef struct {
@ -35,6 +36,7 @@ typedef struct {
} t_mbusCommStats;
e_mbusCommRequestResult mbusCommRequest(t_mbusDevice *mbusDevice);
void mbusCommEnable(bool enable);
void mbusCommTxCpltCallback(UART_HandleTypeDef *huart);
void mbusCommRxCpltCallback(UART_HandleTypeDef *huart);
void mbusCommSetStats(t_mbusCommStats stats);