|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Classes | |
| class | BoardBus |
| class | BoardControl |
Functions | |
| void | take () |
| void | give () |
| void | try_setup () |
| void | radio_task (void *) |
Variables | |
| constexpr uint32_t | kEvDio1 = 1u << 0 |
| constexpr uint32_t | kBusyTimeoutMs = 20 |
| constexpr uint32_t | kFrameTimeoutMs = 10 |
| constexpr uint32_t | kSetupRetryMs = 5000 |
| constexpr uint8_t | kTargetId = 0x01 |
| BoardBus | bus |
| BoardControl | control |
| constexpr LoraConfig | kLora = kDefaultLora |
| Sx1262Setup | setup (bus, control, kLora) |
| Sx1262 | receiver (bus) |
| Link | link (kTargetId) |
| osMutexId_t | mutex |
| bool | configured |
| uint16_t | tx_seq |
| radio_status_t | status |
| radio_rx_t | last_rx |
| bool | want_sniff |
| uint32_t | want_rx_ms |
| uint32_t | want_sleep_ms |
| void(* | on_command )(radio_command_t) |
| uint8_t | frame_buf [kFrameMaxLen] |
| void anonymous_namespace{radio_task.cpp}::give | ( | ) |
Definition at line 94 of file radio_task.cpp.
References mutex, and osMutexRelease().
Referenced by radio_task(), radio_task_last_rx(), radio_task_send_frame(), radio_task_start_continuous_rx(), radio_task_start_sniff(), and try_setup().
| void anonymous_namespace{radio_task.cpp}::radio_task | ( | void * | ) |
Definition at line 112 of file radio_task.cpp.
References radio_link::Arm, board_exti_route(), board_now_ms(), configured, radio_link::Disarm, give(), kEvDio1, kSetupRetryMs, last_rx, link, on_command, osFlagsWaitAny, osThreadFlagsWait(), osThreadGetId(), radio_link::Frame::payload, radio_link::Frame::payload_len, RADIO_CMD_ARM, RADIO_CMD_DISARM, RADIO_DIO1_Pin, receiver, radio_link::PacketStatus::rssi_x2, radio_link::Frame::seq, setup, radio_link::PacketStatus::signal_rssi_x2, radio_link::PacketStatus::snr_x4, status, take(), try_setup(), and radio_link::Frame::type.
Referenced by radio_task_start().
| void anonymous_namespace{radio_task.cpp}::take | ( | void | ) |
Definition at line 91 of file radio_task.cpp.
References mutex, osMutexAcquire(), and osWaitForever.
Referenced by radio_task(), radio_task_last_rx(), radio_task_send_frame(), radio_task_start_continuous_rx(), radio_task_start_sniff(), and try_setup().
| void anonymous_namespace{radio_task.cpp}::try_setup | ( | ) |
Definition at line 98 of file radio_task.cpp.
References configured, give(), radio_link::Ok, setup, status, take(), want_rx_ms, want_sleep_ms, and want_sniff.
Referenced by radio_task().
| BoardBus anonymous_namespace{radio_task.cpp}::bus |
Definition at line 62 of file radio_task.cpp.
| bool anonymous_namespace{radio_task.cpp}::configured |
Definition at line 81 of file radio_task.cpp.
Referenced by radio_task(), radio_task_send_frame(), radio_task_start_continuous_rx(), radio_task_start_sniff(), and try_setup().
| BoardControl anonymous_namespace{radio_task.cpp}::control |
Definition at line 63 of file radio_task.cpp.
| uint8_t anonymous_namespace{radio_task.cpp}::frame_buf[kFrameMaxLen] |
Definition at line 89 of file radio_task.cpp.
Referenced by radio_task_send_frame().
|
constexpr |
Definition at line 20 of file radio_task.cpp.
Referenced by anonymous_namespace{radio_task.cpp}::BoardBus::wait_busy().
|
constexpr |
Definition at line 19 of file radio_task.cpp.
Referenced by radio_task().
|
constexpr |
Definition at line 21 of file radio_task.cpp.
Referenced by anonymous_namespace{radio_task.cpp}::BoardBus::transfer().
|
constexpr |
Definition at line 74 of file radio_task.cpp.
|
constexpr |
Definition at line 22 of file radio_task.cpp.
Referenced by radio_task().
|
constexpr |
Definition at line 24 of file radio_task.cpp.
| radio_rx_t anonymous_namespace{radio_task.cpp}::last_rx |
Definition at line 84 of file radio_task.cpp.
Referenced by radio_task(), and radio_task_last_rx().
Referenced by radio_task().
| osMutexId_t anonymous_namespace{radio_task.cpp}::mutex |
Definition at line 80 of file radio_task.cpp.
Referenced by give(), radio_task_last_rx(), radio_task_send_frame(), radio_task_start(), radio_task_start_continuous_rx(), radio_task_start_sniff(), and take().
| void(* anonymous_namespace{radio_task.cpp}::on_command) (radio_command_t) | ( | radio_command_t | ) |
Definition at line 88 of file radio_task.cpp.
Referenced by radio_task(), and radio_task_on_command().
Referenced by radio_task().
| Sx1262Setup anonymous_namespace{radio_task.cpp}::setup(bus, control, kLora) | ( | bus | , |
| control | , | ||
| kLora | ) |
Referenced by radio_task(), and try_setup().
| radio_status_t anonymous_namespace{radio_task.cpp}::status |
Definition at line 83 of file radio_task.cpp.
Referenced by radio_task(), radio_task_send_frame(), radio_task_status(), and try_setup().
| uint16_t anonymous_namespace{radio_task.cpp}::tx_seq |
Definition at line 82 of file radio_task.cpp.
Referenced by radio_task_send_frame().
| uint32_t anonymous_namespace{radio_task.cpp}::want_rx_ms |
Definition at line 87 of file radio_task.cpp.
Referenced by radio_task_start_sniff(), and try_setup().
| uint32_t anonymous_namespace{radio_task.cpp}::want_sleep_ms |
Definition at line 87 of file radio_task.cpp.
Referenced by radio_task_start_sniff(), and try_setup().
| bool anonymous_namespace{radio_task.cpp}::want_sniff |
Definition at line 86 of file radio_task.cpp.
Referenced by radio_task_start_continuous_rx(), radio_task_start_sniff(), and try_setup().