Go to the documentation of this file.
46 #ifndef __KETCUBE_UART_H
47 #define __KETCUBE_UART_H
59 #define KETCUBE_UART_NAME "uart_drv"
void ketCube_UART_IoInitAll(void)
Initialize all registered descriptors (e.g. when going back from sleep)
Definition: ketCube_uart.c:177
ketCube_cfg_DrvError_t ketCube_UART_UnRegisterHandle(ketCube_UART_ChannelNo_t channel)
Unregister UART channel.
Definition: ketCube_uart.c:103
ketCube_UART_SimpleCbFn_t fnTransmitCallback
Definition: ketCube_uart.h:90
@ KETCUBE_UART_CHANNEL_5
Definition: ketCube_uart.h:71
IRQn_Type irqNumber
Definition: ketCube_uart.h:83
ketCube_UART_ChannelNo_t
UART supported channels.
Definition: ketCube_uart.h:66
ketCube_gpio_port_t
GPIO Ports.
Definition: ketCube_gpio.h:88
UART_HandleTypeDef * handle
Definition: ketCube_uart.h:82
@ KETCUBE_UART_CHANNEL_3
Definition: ketCube_uart.h:69
ketCube_UART_SimpleCbFn_t fnIoDeInit
Definition: ketCube_uart.h:87
void ketCube_UART_WakeupCallback(ketCube_UART_ChannelNo_t channel)
@ KETCUBE_UART_CHANNEL_1
Definition: ketCube_uart.h:67
@ KETCUBE_UART_CHANNEL_COUNT
Definition: ketCube_uart.h:73
@ KETCUBE_UART_CHANNEL_2
Definition: ketCube_uart.h:68
ketCube_UART_SimpleCbFn_t fnWakeupCallback
Definition: ketCube_uart.h:92
ketCube_UART_SimpleCbFn_t fnIoInit
Definition: ketCube_uart.h:86
void ketCube_UART_IoDeInitCallback(ketCube_UART_ChannelNo_t channel)
ketCube_cfg_DrvError_t ketCube_UART_SetupPin(ketCube_gpio_port_t port, ketCube_gpio_pin_t pin, uint8_t af)
Setup UART PIN(s)
Definition: ketCube_uart.c:210
@ KETCUBE_UART_CHANNEL_4
Definition: ketCube_uart.h:70
void(* ketCube_UART_SimpleCbFn_t)(void)
Definition: ketCube_uart.h:76
This file contains definitions for the ketCube GPIO driver.
int irqSubPriority
Definition: ketCube_uart.h:85
void ketCube_UART_ErrorCallback(ketCube_UART_ChannelNo_t channel)
void ketCube_UART_IoDeInitAll(void)
Denitialize all registered descriptors (e.g. when going to sleep)
Definition: ketCube_uart.c:190
void ketCube_UART_TransmitCallback(ketCube_UART_ChannelNo_t channel)
UART descriptor structure.
Definition: ketCube_uart.h:81
UART_HandleTypeDef * ketCube_UART_GetHandle(ketCube_UART_ChannelNo_t channel)
Retrieve UART handle for given channel.
Definition: ketCube_uart.c:121
int irqPriority
Definition: ketCube_uart.h:84
void ketCube_UART_IRQCallback(ketCube_UART_ChannelNo_t channel)
void ketCube_UART_DisableAll(void)
Disable All UART Instances.
Definition: ketCube_uart.c:229
ketCube_UART_SimpleCbFn_t fnIRQCallback
Definition: ketCube_uart.h:88
ketCube_gpio_pin_t
List of GPIO PINs.
Definition: ketCube_gpio.h:65
This file contains definitions for the KETCube configuration.
void ketCube_UART_IoInitCallback(ketCube_UART_ChannelNo_t channel)
ketCube_UART_SimpleCbFn_t fnErrorCallback
Definition: ketCube_uart.h:91
void ketCube_UART_ReceiveCallback(ketCube_UART_ChannelNo_t channel)
void ketCube_UART_EnableAll(void)
Enable All Registered UART Instances.
Definition: ketCube_uart.c:243
ketCube_cfg_DrvError_t
Error code type.
Definition: ketCube_cfg.h:108
ketCube_UART_SimpleCbFn_t fnReceiveCallback
Definition: ketCube_uart.h:89
ketCube_cfg_DrvError_t ketCube_UART_RegisterHandle(ketCube_UART_ChannelNo_t channel, ketCube_UART_descriptor_t *descriptor)
Register UART channel for exclusive access.
Definition: ketCube_uart.c:72