STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
anonymous_namespace{radio_task.cpp} Namespace Reference

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]

Function Documentation

◆ give()

void anonymous_namespace{radio_task.cpp}::give ( )

◆ radio_task()

◆ take()

void anonymous_namespace{radio_task.cpp}::take ( void )

◆ 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().

Variable Documentation

◆ bus

BoardBus anonymous_namespace{radio_task.cpp}::bus

Definition at line 62 of file radio_task.cpp.

◆ configured

bool anonymous_namespace{radio_task.cpp}::configured

◆ control

BoardControl anonymous_namespace{radio_task.cpp}::control

Definition at line 63 of file radio_task.cpp.

◆ frame_buf

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().

◆ kBusyTimeoutMs

uint32_t anonymous_namespace{radio_task.cpp}::kBusyTimeoutMs = 20
constexpr

◆ kEvDio1

uint32_t anonymous_namespace{radio_task.cpp}::kEvDio1 = 1u << 0
constexpr

Definition at line 19 of file radio_task.cpp.

Referenced by radio_task().

◆ kFrameTimeoutMs

uint32_t anonymous_namespace{radio_task.cpp}::kFrameTimeoutMs = 10
constexpr

◆ kLora

LoraConfig anonymous_namespace{radio_task.cpp}::kLora = kDefaultLora
constexpr

Definition at line 74 of file radio_task.cpp.

◆ kSetupRetryMs

uint32_t anonymous_namespace{radio_task.cpp}::kSetupRetryMs = 5000
constexpr

Definition at line 22 of file radio_task.cpp.

Referenced by radio_task().

◆ kTargetId

uint8_t anonymous_namespace{radio_task.cpp}::kTargetId = 0x01
constexpr

Definition at line 24 of file radio_task.cpp.

◆ last_rx

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().

◆ link

Link anonymous_namespace{radio_task.cpp}::link(kTargetId) ( kTargetId )

Referenced by radio_task().

◆ mutex

osMutexId_t anonymous_namespace{radio_task.cpp}::mutex

◆ on_command

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().

◆ receiver

Sx1262 anonymous_namespace{radio_task.cpp}::receiver(bus) ( bus )

Referenced by radio_task().

◆ setup

Sx1262Setup anonymous_namespace{radio_task.cpp}::setup(bus, control, kLora) ( bus ,
control ,
kLora  )

Referenced by radio_task(), and try_setup().

◆ status

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().

◆ tx_seq

uint16_t anonymous_namespace{radio_task.cpp}::tx_seq

Definition at line 82 of file radio_task.cpp.

Referenced by radio_task_send_frame().

◆ want_rx_ms

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().

◆ want_sleep_ms

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().

◆ want_sniff

bool anonymous_namespace{radio_task.cpp}::want_sniff