Add repeater protocol and device firmware features
This commit is contained in:
@@ -31,7 +31,7 @@ bool sx126x_init(sx126x_diag_t *diag);
|
||||
// rx_payload_len is the fixed RX capture length (we truncate in software).
|
||||
bool sx126x_config_wmbus_c1(uint32_t freq_hz, uint8_t rx_payload_len);
|
||||
|
||||
bool sx126x_set_tx_power(int8_t dbm); // -9 .. +14 (PA config capped)
|
||||
bool sx126x_set_tx_power(int8_t dbm); // -9 .. +2 (external FEM follows)
|
||||
bool sx126x_set_rx(void); // continuous RX, FEM to RX path
|
||||
bool sx126x_standby(void);
|
||||
bool sx126x_config_intact(void); // sync-word readback still correct
|
||||
@@ -40,7 +40,9 @@ bool sx126x_inject_sleep(void); // fault injection: SLEEP, config lost
|
||||
// Transmit buf as GFSK payload (sync word prepended by radio).
|
||||
// Handles FEM CTX switching. Blocking until commands issued; TX-done is
|
||||
// signalled via DIO1/IRQ. timeout handled by caller.
|
||||
bool sx126x_start_tx(const uint8_t *buf, uint8_t len);
|
||||
bool sx126x_start_tx(const uint8_t *buf, uint8_t len); // C-mode deviation
|
||||
// t1_deviation = true selects 50 kHz FSK deviation (T-mode); C uses 45 kHz
|
||||
bool sx126x_start_tx_mode(const uint8_t *buf, uint8_t len, bool t1_deviation);
|
||||
// Restore fixed RX payload length after a TX (packet params are shared).
|
||||
bool sx126x_restore_rx_payload_len(void);
|
||||
|
||||
@@ -59,10 +61,9 @@ bool sx126x_raw(uint8_t op, const uint8_t *args, size_t n_tx,
|
||||
// FEM control (exposed for diagnostics)
|
||||
void fem_set_tx(bool tx);
|
||||
void fem_power(bool on);
|
||||
// Desired FEM/preamble settings are mutated only by the radio owner at a loop boundary.
|
||||
void fem_set_rx_csd(bool en); // LNA experiment: FEM CSD level in RX
|
||||
void sx126x_set_pa_low(bool low); // PA table: true = lowest documented output
|
||||
void sx126x_set_preamble_detect(uint8_t code); // 0x00 off, 0x04=8b, 0x05=16b, 0x06=24b, 0x07=32b
|
||||
uint8_t sx126x_get_preamble_detect(void);
|
||||
|
||||
// Registered by caller before init; invoked from DIO1 GPIO ISR.
|
||||
typedef void (*sx126x_irq_cb_t)(int64_t timestamp_us);
|
||||
|
||||
Reference in New Issue
Block a user