#include <link.h>
Definition at line 16 of file link.h.
◆ Link()
| radio_link::Link::Link |
( |
uint8_t | target_id | ) |
|
|
inlineexplicit |
◆ frames_dropped()
| uint32_t radio_link::Link::frames_dropped |
( |
| ) |
const |
|
inline |
◆ frames_ok()
| uint32_t radio_link::Link::frames_ok |
( |
| ) |
const |
|
inline |
◆ last_frame()
| const Frame & radio_link::Link::last_frame |
( |
| ) |
const |
|
inline |
◆ poll()
| ArmAction radio_link::Link::poll |
( |
uint32_t | now_ms | ) |
|
Drain at most one waiting packet (the SX1262 holds one at a time, so do not loop here; call again on the next DIO1 interrupt).
Returns the gate's action for it: ArmAction::None if nothing was waiting, the packet was invalid, or it was not an ARM/UN_ARM frame (check the counters to tell them apart).
Definition at line 7 of file link.cpp.
References buf_, radio_link::decode_frame(), radio_link::ErrTooLong, frame_, frames_dropped_, frames_ok_, gate_, radio_link::NoData, radio_link::None, radio_link::Ok, radio_errors_, and radio_link::radio_receive().
◆ radio_errors()
| uint32_t radio_link::Link::radio_errors |
( |
| ) |
const |
|
inline |
◆ buf_
◆ frame_
| Frame radio_link::Link::frame_ |
|
private |
◆ frames_dropped_
| uint32_t radio_link::Link::frames_dropped_ = 0 |
|
private |
◆ frames_ok_
| uint32_t radio_link::Link::frames_ok_ = 0 |
|
private |
◆ gate_
◆ radio_errors_
| uint32_t radio_link::Link::radio_errors_ = 0 |
|
private |
The documentation for this class was generated from the following files:
- firmware/Flight_Computer/src/radio/link.h
- firmware/Flight_Computer/src/radio/link.cpp