|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Go to the source code of this file.
Functions | |
| bool | board_uart9_start (osThreadId_t thread, uint32_t flag) |
| size_t | board_uart9_read (uint8_t *out, size_t cap) |
| void | board_uart9_send (const uint8_t *bytes, uint16_t len) |
| void | board_uart9_set_baud (uint32_t baud) |
| bool | board_uart9_apply_baud (uint32_t baud) |
| uint32_t | board_uart9_rx_bytes (void) |
| uint32_t | board_uart9_overflows (void) |
| uint32_t | board_uart9_errors (void) |
| bool board_uart9_apply_baud | ( | uint32_t | baud | ) |
Definition at line 23 of file board_uart9.c.
References HAL_OK, HAL_UART_Init(), HAL_UARTEx_EnableFifoMode(), HAL_UARTEx_SetRxFifoThreshold(), HAL_UARTEx_SetTxFifoThreshold(), huart9, UART_RXFIFO_THRESHOLD_1_2, and UART_TXFIFO_THRESHOLD_1_8.
Referenced by board_uart9_set_baud(), and uart9_set_baud().
| uint32_t board_uart9_errors | ( | void | ) |
Definition at line 73 of file board_uart9.c.
References errors.
| uint32_t board_uart9_overflows | ( | void | ) |
Definition at line 70 of file board_uart9.c.
References overflows.
| size_t board_uart9_read | ( | uint8_t * | out, |
| size_t | cap ) |
Definition at line 45 of file board_uart9.c.
References head, ring, RING_SIZE, and tail.
Referenced by gnss_task().
| uint32_t board_uart9_rx_bytes | ( | void | ) |
Definition at line 67 of file board_uart9.c.
References head.
| void board_uart9_send | ( | const uint8_t * | bytes, |
| uint16_t | len ) |
Definition at line 55 of file board_uart9.c.
References HAL_UART_Transmit(), and huart9.
Referenced by send().
| void board_uart9_set_baud | ( | uint32_t | baud | ) |
Definition at line 59 of file board_uart9.c.
References arm(), board_uart9_apply_baud(), errors, HAL_UART_AbortReceive_IT(), and huart9.
Referenced by set_baud().
| bool board_uart9_start | ( | osThreadId_t | thread, |
| uint32_t | flag ) |
Definition at line 38 of file board_uart9.c.
References arm(), owner, owner_flag, and thread.
Referenced by gnss_task().