RadioLib
Universal wireless communication library for Arduino
Loading...
Searching...
No Matches
SX126x_commands.h
1
#if !defined(_RADIOLIB_SX126X_COMMANDS_H)
2
#define _RADIOLIB_SX126X_COMMANDS_H
3
4
#include "../../TypeDef.h"
5
6
#if !RADIOLIB_EXCLUDE_SX126X
7
8
// SX126X SPI commands
9
// operational modes commands
10
#define RADIOLIB_SX126X_CMD_NOP 0x00
11
#define RADIOLIB_SX126X_CMD_SET_SLEEP 0x84
12
#define RADIOLIB_SX126X_CMD_SET_STANDBY 0x80
13
#define RADIOLIB_SX126X_CMD_SET_FS 0xC1
14
#define RADIOLIB_SX126X_CMD_SET_TX 0x83
15
#define RADIOLIB_SX126X_CMD_SET_RX 0x82
16
#define RADIOLIB_SX126X_CMD_STOP_TIMER_ON_PREAMBLE 0x9F
17
#define RADIOLIB_SX126X_CMD_SET_RX_DUTY_CYCLE 0x94
18
#define RADIOLIB_SX126X_CMD_SET_CAD 0xC5
19
#define RADIOLIB_SX126X_CMD_SET_TX_CONTINUOUS_WAVE 0xD1
20
#define RADIOLIB_SX126X_CMD_SET_TX_INFINITE_PREAMBLE 0xD2
21
#define RADIOLIB_SX126X_CMD_SET_REGULATOR_MODE 0x96
22
#define RADIOLIB_SX126X_CMD_CALIBRATE 0x89
23
#define RADIOLIB_SX126X_CMD_CALIBRATE_IMAGE 0x98
24
#define RADIOLIB_SX126X_CMD_SET_PA_CONFIG 0x95
25
#define RADIOLIB_SX126X_CMD_SET_RX_TX_FALLBACK_MODE 0x93
26
27
// register and buffer access commands
28
#define RADIOLIB_SX126X_CMD_WRITE_REGISTER 0x0D
29
#define RADIOLIB_SX126X_CMD_READ_REGISTER 0x1D
30
#define RADIOLIB_SX126X_CMD_WRITE_BUFFER 0x0E
31
#define RADIOLIB_SX126X_CMD_READ_BUFFER 0x1E
32
33
// DIO and IRQ control
34
#define RADIOLIB_SX126X_CMD_SET_DIO_IRQ_PARAMS 0x08
35
#define RADIOLIB_SX126X_CMD_GET_IRQ_STATUS 0x12
36
#define RADIOLIB_SX126X_CMD_CLEAR_IRQ_STATUS 0x02
37
#define RADIOLIB_SX126X_CMD_SET_DIO2_AS_RF_SWITCH_CTRL 0x9D
38
#define RADIOLIB_SX126X_CMD_SET_DIO3_AS_TCXO_CTRL 0x97
39
40
// RF, modulation and packet commands
41
#define RADIOLIB_SX126X_CMD_SET_RF_FREQUENCY 0x86
42
#define RADIOLIB_SX126X_CMD_SET_PACKET_TYPE 0x8A
43
#define RADIOLIB_SX126X_CMD_GET_PACKET_TYPE 0x11
44
#define RADIOLIB_SX126X_CMD_SET_TX_PARAMS 0x8E
45
#define RADIOLIB_SX126X_CMD_SET_MODULATION_PARAMS 0x8B
46
#define RADIOLIB_SX126X_CMD_SET_PACKET_PARAMS 0x8C
47
#define RADIOLIB_SX126X_CMD_SET_CAD_PARAMS 0x88
48
#define RADIOLIB_SX126X_CMD_SET_BUFFER_BASE_ADDRESS 0x8F
49
#define RADIOLIB_SX126X_CMD_SET_LORA_SYMB_NUM_TIMEOUT 0xA0
50
51
// status commands
52
#define RADIOLIB_SX126X_CMD_GET_STATUS 0xC0
53
#define RADIOLIB_SX126X_CMD_GET_RSSI_INST 0x15
54
#define RADIOLIB_SX126X_CMD_GET_RX_BUFFER_STATUS 0x13
55
#define RADIOLIB_SX126X_CMD_GET_PACKET_STATUS 0x14
56
#define RADIOLIB_SX126X_CMD_GET_DEVICE_ERRORS 0x17
57
#define RADIOLIB_SX126X_CMD_CLEAR_DEVICE_ERRORS 0x07
58
#define RADIOLIB_SX126X_CMD_GET_STATS 0x10
59
#define RADIOLIB_SX126X_CMD_RESET_STATS 0x00
60
61
#define RADIOLIB_SX126X_CMD_PRAM_UPDATE 0xD9
62
#define RADIOLIB_SX126X_CMD_SET_LBT_SCAN_PARAMS 0x9A
63
#define RADIOLIB_SX126X_CMD_SET_SPECTR_SCAN_PARAMS 0x9B
64
65
#endif
66
67
#endif
src
modules
SX126x
SX126x_commands.h
Generated by
1.9.8