|
GPS Device
|
Functions | |
| void | usart_init (USART_CFG_ts *usart_cfg) |
| Initializes the USART peripheral with the given configuration. | |
| void | usart_deinit (USART_REGDEF_ts const *instance) |
| Deinitializes the USART peripheral, disables its NVIC interrupt, and disables its clock. | |
| void | usart_send (USART_REGDEF_ts *instance, uint8_t *tx_buffer, uint32_t len) |
| Blocking USART transmit. | |
| void | usart_receive (USART_REGDEF_ts const *instance, uint8_t *rx_buffer, uint32_t len) |
| Blocking USART receive. | |
| void | usart_set_transmission (USART_REGDEF_ts *instance, EN_STATUS_te en_status) |
| Enables or disables the USART transmitter. | |
| void | usart_set_reception (USART_REGDEF_ts *instance, EN_STATUS_te en_status) |
| Enables or disables the USART receiver. | |
| void | usart_get_name (USART_REGDEF_ts const *instance, char *name) |
| Returns the name string of a USART peripheral instance. | |
| void usart_init | ( | USART_CFG_ts * | usart_cfg | ) |
Initializes the USART peripheral with the given configuration.
Definition at line 28 of file stm32f401re_usart.c.


| void usart_deinit | ( | USART_REGDEF_ts const * | instance | ) |
Deinitializes the USART peripheral, disables its NVIC interrupt, and disables its clock.
Definition at line 93 of file stm32f401re_usart.c.


| void usart_send | ( | USART_REGDEF_ts * | instance, |
| uint8_t * | tx_buffer, | ||
| uint32_t | len ) |
Blocking USART transmit.
Blocking USART transmit. Sends len bytes from tx_buffer.
Definition at line 111 of file stm32f401re_usart.c.

| void usart_receive | ( | USART_REGDEF_ts const * | instance, |
| uint8_t * | rx_buffer, | ||
| uint32_t | len ) |
Blocking USART receive.
Blocking USART receive. Reads len bytes into rx_buffer.
Definition at line 123 of file stm32f401re_usart.c.
| void usart_set_transmission | ( | USART_REGDEF_ts * | instance, |
| EN_STATUS_te | en_status ) |
Enables or disables the USART transmitter.
Enables or disables the USART transmitter (TE bit).
Definition at line 133 of file stm32f401re_usart.c.

| void usart_set_reception | ( | USART_REGDEF_ts * | instance, |
| EN_STATUS_te | en_status ) |
Enables or disables the USART receiver.
Enables or disables the USART receiver (RE bit).
Definition at line 139 of file stm32f401re_usart.c.

| void usart_get_name | ( | USART_REGDEF_ts const * | instance, |
| char * | name ) |
Returns the name string of a USART peripheral instance.
Returns the name string of a USART peripheral instance (e.g. "USART1").
Definition at line 145 of file stm32f401re_usart.c.
