|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Go to the source code of this file.
Macros | |
| #define | RING_SIZE 1024U |
Functions | |
| static void | arm (void) |
| bool | board_uart9_apply_baud (uint32_t baud) |
| 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) |
| uint32_t | board_uart9_rx_bytes (void) |
| uint32_t | board_uart9_overflows (void) |
| uint32_t | board_uart9_errors (void) |
| void | HAL_UARTEx_RxEventCallback (UART_HandleTypeDef *huart, uint16_t size) |
| void | HAL_UART_ErrorCallback (UART_HandleTypeDef *huart) |
Variables | |
| UART_HandleTypeDef | huart9 |
| static uint8_t | ring [RING_SIZE] |
| static volatile uint32_t | head |
| static volatile uint32_t | tail |
| static uint8_t | chunk [64] |
| static volatile uint32_t | overflows |
| static volatile uint32_t | errors |
| static osThreadId_t volatile | owner |
| static uint32_t | owner_flag |
| #define RING_SIZE 1024U |
Definition at line 9 of file board_uart9.c.
Referenced by board_uart9_read(), and HAL_UARTEx_RxEventCallback().
|
static |
Definition at line 17 of file board_uart9.c.
References chunk, errors, HAL_OK, HAL_UARTEx_ReceiveToIdle_IT(), and huart9.
Referenced by board_uart9_set_baud(), board_uart9_start(), emmc_log_service(), HAL_UART_ErrorCallback(), and HAL_UARTEx_RxEventCallback().
| 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().
|
static |
Definition at line 12 of file board_uart9.c.
Referenced by ADC_SPI(), arm(), block_at(), collect_chunk(), collect_chunk_impl(), anonymous_namespace{ota_service_main.cpp}::flashFirmware(), detail::binary_reader< BasicJsonType, InputAdapterType, SAX >::get_cbor_binary(), detail::binary_reader< BasicJsonType, InputAdapterType, SAX >::get_cbor_string(), HAL_UARTEx_RxEventCallback(), loop(), fsw::streams::SensorFramePipeline::poll(), read_data(), read_data(), fsw::elodin::ElodinClient::read_packet(), read_single_connector(), readCurrentSensePins(), readCurrentSensePinsAndSend(), readCurrentSensePinsAndSend(), send_chunks_to_impl(), sendPositions(), sendReplyTo(), sendSensorDataPacket(), sendSensorPacket(), test_chunk_add_datapoint(), test_chunk_add_over_capacity(), test_chunk_clear(), test_chunk_constructor(), test_chunk_datapoint_values(), test_chunk_single_sensor(), and test_chunk_zero_capacity().
|
static |
Definition at line 13 of file board_uart9.c.
Referenced by arm(), board_uart9_errors(), board_uart9_set_baud(), radio_link::Sx1262Setup::configure(), HAL_UART_ErrorCallback(), fsw::config::detail::parse_t7_boards(), and self_test_devices_probe().
|
static |
Definition at line 11 of file board_uart9.c.
Referenced by feedtwin.vessels.geometry::_cylindrical(), board_uart9_read(), board_uart9_rx_bytes(), and HAL_UARTEx_RxEventCallback().
|
extern |
Definition at line 65 of file main.c.
Referenced by arm(), board_uart9_apply_baud(), board_uart9_send(), board_uart9_set_baud(), gnss_probe(), HAL_UART_ErrorCallback(), HAL_UARTEx_RxEventCallback(), MX_UART9_Init(), UART9_IRQHandler(), and uart9_set_baud().
|
static |
Definition at line 13 of file board_uart9.c.
Referenced by board_uart9_overflows(), and HAL_UARTEx_RxEventCallback().
|
static |
Definition at line 14 of file board_uart9.c.
Referenced by board_uart9_start(), HAL_UARTEx_RxEventCallback(), and fsw::config::anonymous_namespace{Config.cpp}::validate_environmental_boards().
|
static |
Definition at line 15 of file board_uart9.c.
Referenced by board_uart9_start(), and HAL_UARTEx_RxEventCallback().
|
static |
Definition at line 10 of file board_uart9.c.
Referenced by board_uart9_read(), fsw::calibration::CaptureWindow::capture(), HAL_UARTEx_RxEventCallback(), fsw::calibration::CaptureWindow::push(), and fsw::calibration::CaptureWindow::uids().
|
static |
Definition at line 11 of file board_uart9.c.
Referenced by board_uart9_read(), HAL_UARTEx_RxEventCallback(), and ipv4_host_octet().