KETCube
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
ketCube_uart2WAN.h File Reference
#include "ketCube_uart.h"

Go to the source code of this file.

Data Structures

struct  ketCube_uart2WAN_moduleCfg_t
 KETCube module configuration. More...
 

Macros

#define KETCUBE_UART2WAN_USART_INSTANCE   USART2
 
#define KETCUBE_UART2WAN_USART_CHANNEL   KETCUBE_UART_CHANNEL_2
 
#define KETCUBE_UART2WAN_USART_SET_CLK_SRC()   __HAL_RCC_USART2_CONFIG(RCC_USART2CLKSOURCE_HSI)
 
#define KETCUBE_UART2WAN_USART_IRQ_NUMBER   USART2_IRQn
 
#define KETCUBE_UART2WAN_USART_IRQ_PRIORITY   0x1
 
#define KETCUBE_UART2WAN_USART_IRQ_SUBPRIORITY   1
 
#define KETCUBE_UART2WAN_USART_CLK_ENABLE()   __USART2_CLK_ENABLE()
 
#define KETCUBE_UART2WAN_USART_CLK_DISABLE()   __USART2_CLK_DISABLE()
 
#define KETCUBE_UART2WAN_USART_RX_PIN   KETCUBE_GPIO_PIN_2
 
#define KETCUBE_UART2WAN_USART_RX_PIN_AF   GPIO_AF4_USART2
 
#define KETCUBE_UART2WAN_USART_RX_PIN_PORT   KETCUBE_GPIO_PA
 
#define KETCUBE_UART2WAN_USART_TX_PIN   KETCUBE_GPIO_PIN_3
 
#define KETCUBE_UART2WAN_USART_TX_PIN_AF   GPIO_AF4_USART2
 
#define KETCUBE_UART2WAN_USART_TX_PIN_PORT   KETCUBE_GPIO_PA
 
#define KETCUBE_UART2WAN_USART_BAUDRATE   9600 /*<! default baudrate */
 
#define KETCUBE_UART2WAN_USART_DATA_BITS   UART_WORDLENGTH_8B /*<! default is 8. When parity is used, use 9 dta bits -- Oh, how uggly UART implementation */
 
#define KETCUBE_UART2WAN_USART_STOP_BITS   UART_STOPBITS_1 /*<! default is one stop bit */
 
#define KETCUBE_UART2WAN_USART_PARITY   UART_PARITY_NONE /*<! default is no parity */
 
#define KETCUBE_UART2WAN_USART_HW_FLOW_CONTROL   UART_HWCONTROL_NONE /*<! default M-BUS HW control */
 
#define KETCUBE_UART2WAN_USART_INIT_MODE   UART_MODE_TX_RX /*<! default USART startup mode for M-BUS */
 
#define KETCUBE_UART2WAN_USART_TIMEOUT   5000 /*<! UART Timeout in ms */
 

Typedefs

typedef struct ketCube_uart2WAN_moduleCfg_t ketCube_uart2WAN_moduleCfg_t
 KETCube module configuration. More...
 

Enumerations

enum  ketCube_uart2WAN_err_t { KETCUBE_UART2WAN_ERR_NOERR = 0x00, KETCUBE_UART2WAN_ERR_TIMEOUT = 0x01 }
 enumerator of M-BUS configuration options addresses More...
 

Functions

ketCube_cfg_ModError_t ketCube_uart2WAN_Init (ketCube_InterModMsg_t ***msg)
 
ketCube_cfg_ModError_t ketCube_uart2WAN_ReadData (uint8_t *buffer, uint8_t *len)
 
ketCube_cfg_ModError_t ketCube_uart2WAN_ProcessData (ketCube_InterModMsg_t *msg)
 
ketCube_cfg_ModError_t ketCube_uart2WAN_SleepEnter (void)
 
ketCube_cfg_ModError_t ketCube_uart2WAN_SleepExit (void)
 

Variables

ketCube_uart2WAN_moduleCfg_t ketCube_uart2WAN_moduleCfg