GlobLib
HAL and API libraries for MCUs and hardware.
|
Source file for stm32f103cb USART. More...
#include "stm32f103cb_usart.h"
Go to the source code of this file.
Functions | |
mcu_error | USART_setup (usart_periph peripheral) |
Initialize USART port. More... | |
mcu_error | USART_setBaud (usart_periph peripheral, usart_baud baud) |
Set the baud rate for the port. More... | |
mcu_error | USART_setStop (usart_periph peripheral, usart_stop stop) |
Set the number of stop bits for the port. More... | |
mcu_error | USART_setData (usart_periph peripheral, usart_data data) |
Set the data frame size for the port. More... | |
mcu_error | USART_setParity (usart_periph peripheral, usart_parity parity) |
Set the parity for the port. More... | |
mcu_error | USART_put (usart_periph peripheral, uint8_t byte) |
Send a byte on the given peripheral. More... | |
v_fp_u8 | USART_add_put (usart_periph peripheral) |
Return the address of the peripheral put function. More... | |
uint8_t | USART_get (usart_periph peripheral) |
Get a byte on the given peripheral (blocking). More... | |
mcu_error | USART_setRxISR (usart_periph peripheral, void(*new_handler)(uint8_t received)) |
Sets the target function called when recieve ISR is triggered. More... | |
mcu_error | USART_setTxISR (usart_periph peripheral, void(*new_handler)(void)) |
Sets the target function called when transmit ISR is triggered. More... | |
mcu_error | USART_disableISR (usart_periph peripheral, usart_isr isr_target) |
Disables the specified ISR function. More... | |
mcu_error | USART_enableISR (usart_periph peripheral, usart_isr isr_target) |
Enables the specified ISR function. More... | |
Source file for stm32f103cb USART.
Definition in file stm32f103cb_usart.c.