|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <sx1262.h>
Public Member Functions | |
| Sx1262 (SpiBus &bus) | |
| bool | start_rx_continuous () |
| RadioStatus | receive (uint8_t *buf, uint8_t max_len, uint8_t &len) |
| bool | packet_status (PacketStatus &out) |
| uint32_t | crc_errors () const |
Private Member Functions | |
| bool | command (const uint8_t *tx, uint8_t *rx, uint16_t n) |
| bool | clear_irq (uint16_t mask) |
Private Attributes | |
| SpiBus & | bus_ |
| uint32_t | crc_errors_ = 0 |
| uint8_t | read_tx_ [kMaxExchange] |
| uint8_t | read_rx_ [kMaxExchange] |
Static Private Attributes | |
| static constexpr unsigned | kMaxExchange = 3 + 255 |
|
inlineexplicit |
|
private |
Definition at line 45 of file sx1262.cpp.
References command(), and radio_link::kOpClearIrqStatus.
Referenced by receive().
|
private |
Definition at line 31 of file sx1262.cpp.
References bus_.
Referenced by clear_irq(), packet_status(), receive(), and start_rx_continuous().
|
inline |
Definition at line 82 of file sx1262.h.
References crc_errors_.
Referenced by test_damaged_packets_are_counted().
| bool radio_link::Sx1262::packet_status | ( | PacketStatus & | out | ) |
Definition at line 109 of file sx1262.cpp.
References command(), and radio_link::kOpGetPacketStatus.
Referenced by test_packet_status_busy_never_clears(), test_packet_status_converts_rssi_and_negative_snr(), test_packet_status_missing_chip_leaves_output_alone(), test_packet_status_positive_snr(), and test_packet_status_sends_0x14_and_four_nops().
| RadioStatus radio_link::Sx1262::receive | ( | uint8_t * | buf, |
| uint8_t | max_len, | ||
| uint8_t & | len ) |
Definition at line 52 of file sx1262.cpp.
References clear_irq(), command(), crc_errors_, radio_link::ErrNotFound, radio_link::ErrTooLong, radio_link::kIrqCrcErr, radio_link::kIrqHeaderErr, radio_link::kIrqRxDone, radio_link::kOpGetIrqStatus, radio_link::kOpGetRxBufferStatus, radio_link::kOpReadBuffer, radio_link::NoData, radio_link::Ok, read_rx_, read_tx_, and start().
Referenced by radio_link::radio_receive(), test_bad_status_while_reading_a_packet_reports_not_found(), test_biggest_packet_255_bytes_is_read_whole(), test_busy_is_checked_before_every_exchange(), test_chip_stuck_busy_reports_not_found(), test_command_failure_status_reports_not_found(), test_damaged_packets_are_counted(), test_header_error_drops_the_packet(), test_missing_chip_reading_ones_reports_not_found(), test_missing_chip_reading_zeros_reports_not_found(), test_no_flags_returns_no_data(), test_packet_bigger_than_the_box_is_dropped(), test_packet_flag_is_cleared_after_reading(), test_packet_is_read_with_the_right_bytes_and_length(), test_radio_crc_error_drops_the_packet(), test_start_position_in_the_chip_buffer_is_used(), test_the_four_exchanges_happen_in_order(), and test_zero_length_packet_is_dropped().
| bool radio_link::Sx1262::start_rx_continuous | ( | ) |
Definition at line 39 of file sx1262.cpp.
References command(), and radio_link::kOpSetRx.
Referenced by test_start_rx_continuous_fails_when_busy_never_clears(), and test_start_rx_continuous_sends_setrx_ffffff().
|
private |
|
private |
Definition at line 98 of file sx1262.h.
Referenced by crc_errors(), and receive().
|
staticconstexprprivate |
|
private |
|
private |