Go to the documentation of this file.
44 #define STATUS_SPI_READY (0x1 << 7)
45 #define STATUS_IRQ_STATUS (0x1 << 6)
46 #define STATUS_CMD_READY (0x1 << 5)
47 #define STATUS_FW_STATE (0x1F << 0)
50 #define FW_STATE_INIT 0x0F
51 #define FW_STATE_BUSY 0x00
52 #define FW_STATE_PHY_OFF 0x11
53 #define FW_STATE_PHY_ON 0x12
54 #define FW_STATE_PHY_RX 0x13
55 #define FW_STATE_PHY_TX 0x14
56 #define FW_STATE_PHY_SLEEP 0x06
57 #define FW_STATE_GET_RSSI 0x05
58 #define FW_STATE_IR_CAL 0x07
59 #define FW_STATE_AES_DECRYPT_INIT 0x08
60 #define FW_STATE_AES_DECRYPT 0x09
61 #define FW_STATE_AES_ENCRYPT 0x0A
64 #define SPI_MEM_WR 0x18 // Write data to packet RAM sequentially.
65 #define SPI_MEM_RD 0x38 // Read data from packet RAM sequentially.
66 #define SPI_MEMR_WR 0x08 // Write data to packet RAM nonsequentially.
67 #define SPI_MEMR_RD 0x28 // Read data from packet RAM nonsequentially.
68 #define SPI_NOP 0xFF // No operation.
71 #define CMD_SYNC 0xA2 // This is an optional command. It is not necessary to use it during device initialization
72 #define CMD_PHY_OFF 0xB0 // Performs a transition of the device into the PHY_OFF state.
73 #define CMD_PHY_ON 0xB1 // Performs a transition of the device into the PHY_ON state.
74 #define CMD_PHY_RX 0xB2 // Performs a transition of the device into the PHY_RX state.
75 #define CMD_PHY_TX 0xB5 // Performs a transition of the device into the PHY_TX state.
76 #define CMD_PHY_SLEEP 0xBA // Performs a transition of the device into the PHY_SLEEP state.
77 #define CMD_CONFIG_DEV 0xBB // Configures the radio parameters based on the BBRAM values.
78 #define CMD_GET_RSSI 0xBC // Performs an RSSI measurement.
79 #define CMD_BB_CAL 0xBE // Performs a calibration of the IF filter.
80 #define CMD_HW_RESET 0xC8 // Performs a full hardware reset. The device enters the PHY_SLEEP state.
81 #define CMD_RAM_LOAD_INIT 0xBF // Prepares the program RAM for a firmware module download.
82 #define CMD_RAM_LOAD_DONE 0xC7 // Performs a reset of the communications processor after download of a firmware module to program RAM.
83 #define CMD_IR_CAL 0xBD // Initiates an image rejection calibration routine.
84 #define CMD_AES_ENCRYPT 0xD0 // Performs an AES encryption on the transmit payload data stored in packet RAM.
85 #define CMD_AES_DECRYPT 0xD2 // Performs an AES decryption on the received payload data stored in packet RAM.
86 #define CMD_AES_DECRYPT_INIT 0xD1 // Initializes the internal variables required for AES decryption.
87 #define CMD_RS_ENCODE_INIT 0xD1 // Initializes the internal variables required for the Reed Solomon encoding.
88 #define CMD_RS_ENCODE 0xD0 // Calculates and appends the Reed Solomon check bytes to the transmit payload data stored in packet RAM.
89 #define CMD_RS_DECODE 0xD2 // Performs a Reed Solomon error correction on the received payload data stored in packet RAM.
92 #define BBRAM_REG_INTERRUPT_MASK_0 0x100
93 #define BBRAM_REG_INTERRUPT_MASK_1 0x101
94 #define BBRAM_REG_NUMBER_OF_WAKEUPS_0 0x102
95 #define BBRAM_REG_NUMBER_OF_WAKEUPS_1 0x103
96 #define BBRAM_REG_NUMBER_OF_WAKEUPS_IRQ_THRESHOLD_0 0x104
97 #define BBRAM_REG_NUMBER_OF_WAKEUPS_IRQ_THRESHOLD_1 0x105
98 #define BBRAM_REG_RX_DWELL_TIME 0x106
99 #define BBRAM_REG_PARMTIME_DIVIDER 0x107
100 #define BBRAM_REG_SWM_RSSI_THRESH 0x108
101 #define BBRAM_REG_CHANNEL_FREQ_0 0x109
102 #define BBRAM_REG_CHANNEL_FREQ_1 0x10A
103 #define BBRAM_REG_CHANNEL_FREQ_2 0x10B
104 #define BBRAM_REG_RADIO_CFG_0 0x10C
105 #define BBRAM_REG_RADIO_CFG_1 0x10D
106 #define BBRAM_REG_RADIO_CFG_2 0x10E
107 #define BBRAM_REG_RADIO_CFG_3 0x10F
108 #define BBRAM_REG_RADIO_CFG_4 0x110
109 #define BBRAM_REG_RADIO_CFG_5 0x111
110 #define BBRAM_REG_RADIO_CFG_6 0x112
111 #define BBRAM_REG_RADIO_CFG_7 0x113
112 #define BBRAM_REG_RADIO_CFG_8 0x114
113 #define BBRAM_REG_RADIO_CFG_9 0x115
114 #define BBRAM_REG_RADIO_CFG_10 0x116
115 #define BBRAM_REG_RADIO_CFG_11 0x117
116 #define BBRAM_REG_IMAGE_REJECT_CAL_PHASE 0x118
117 #define BBRAM_REG_IMAGE_REJECT_CAL_AMPLITUDE 0x119
118 #define BBRAM_REG_MODE_CONTROL 0x11A
119 #define BBRAM_REG_PREAMBLE_MATCH 0x11B
120 #define BBRAM_REG_SYMBOL_MODE 0x11C
121 #define BBRAM_REG_PREAMBLE_LEN 0x11D
122 #define BBRAM_REG_CRC_POLY_0 0x11E
123 #define BBRAM_REG_CRC_POLY_1 0x11F
124 #define BBRAM_REG_SYNC_CONTROL 0x120
125 #define BBRAM_REG_SYNC_BYTE_0 0x121
126 #define BBRAM_REG_SYNC_BYTE_1 0x122
127 #define BBRAM_REG_SYNC_BYTE_2 0x123
128 #define BBRAM_REG_TX_BASE_ADR 0x124
129 #define BBRAM_REG_RX_BASE_ADR 0x125
130 #define BBRAM_REG_PACKET_LENGTH_CONTROL 0x126
131 #define BBRAM_REG_PACKET_LENGTH_MAX 0x127
132 #define BBRAM_REG_STATIC_REG_FIX 0x128
133 #define BBRAM_REG_ADDRESS_MATCH_OFFSET 0x129
134 #define BBRAM_REG_ADDRESS_LENGTH 0x12A
135 #define BBRAM_REG_ADDRESS_FILTERING_0 0x12B
136 #define BBRAM_REG_ADDRESS_FILTERING_1 0x12C
137 #define BBRAM_REG_ADDRESS_FILTERING_2 0x12D
138 #define BBRAM_REG_ADDRESS_FILTERING_3 0x12E
139 #define BBRAM_REG_ADDRESS_FILTERING_4 0x12F
140 #define BBRAM_REG_ADDRESS_FILTERING_5 0x130
141 #define BBRAM_REG_ADDRESS_FILTERING_6 0x131
142 #define BBRAM_REG_ADDRESS_FILTERING_7 0x132
143 #define BBRAM_REG_ADDRESS_FILTERING_8 0x133
144 #define BBRAM_REG_ADDRESS_FILTERING_9 0x134
145 #define BBRAM_REG_ADDRESS_FILTERING_10 0x135
146 #define BBRAM_REG_ADDRESS_FILTERING_11 0x136
147 #define BBRAM_REG_ADDRESS_FILTERING_12 0x137
148 #define BBRAM_REG_RSSI_WAIT_TIME 0x138
149 #define BBRAM_REG_TESTMODES 0x139
150 #define BBRAM_REG_TRANSITION_CLOCK_DIV 0x13A
151 #define BBRAM_REG_RESERVED_0 0x13B
152 #define BBRAM_REG_RESERVED_1 0x13C
153 #define BBRAM_REG_RESERVED_2 0x13D
154 #define BBRAM_REG_RX_SYNTH_LOCK_TIME 0x13E
155 #define BBRAM_REG_TX_SYNTH_LOCK_TIME 0x13F
158 #define BBRAM_INTERRUPT_MASK_0_INTERRUPT_NUM_WAKEUPS (0x1 << 7)
159 #define BBRAM_INTERRUPT_MASK_0_INTERRUPT_SWM_RSSI_DET (0x1 << 6)
160 #define BBRAM_INTERRUPT_MASK_0_INTERRUPT_AES_DONE (0x1 << 5)
161 #define BBRAM_INTERRUPT_MASK_0_INTERRUPT_TX_EOF (0x1 << 4)
162 #define BBRAM_INTERRUPT_MASK_0_INTERRUPT_ADDRESS_MATCH (0x1 << 3)
163 #define BBRAM_INTERRUPT_MASK_0_INTERRUPT_CRC_CORRECT (0x1 << 2)
164 #define BBRAM_INTERRUPT_MASK_0_INTERRUPT_SYNC_DETECT (0x1 << 1)
165 #define BBRAM_INTERRUPT_MASK_0_INTERRUPT_PREMABLE_DETECT (0x1 << 0)
168 #define BBRAM_INTERRUPT_MASK_1_BATTERY_ALARM (0x1 << 7)
169 #define BBRAM_INTERRUPT_MASK_1_CMD_READY (0x1 << 6)
170 #define BBRAM_INTERRUPT_MASK_1_WUC_TIMEOUT (0x1 << 4)
171 #define BBRAM_INTERRUPT_MASK_1_SPI_READY (0x1 << 1)
172 #define BBRAM_INTERRUPT_MASK_1_CMD_FINISHED (0x1 << 0)
175 #define BBRAM_RADIO_CFG_0_DATA_RATE_7_0(x) ((x & 0xFF) << 0)
178 #define BBRAM_RADIO_CFG_1_FREQ_DEVIATION_11_8(x) ((x & 0xF) << 4)
179 #define BBRAM_RADIO_CFG_1_DATA_RATE_11_8(x) ((x & 0xF) << 0)
182 #define BBRAM_RADIO_CFG_2_FREQ_DEVIATION_7_0(x) ((x & 0xFF) << 0)
185 #define BBRAM_RADIO_CFG_6_SYNTH_LUT_CONFIG_0(x) ((x & 0x3F) << 2)
186 #define BBRAM_RADIO_CFG_6_DISCRIM_PHASE(x) ((x & 0x3) << 0)
189 #define BBRAM_RADIO_CFG_7_AGC_LOCK_MODE(x) ((x & 0x3) << 6)
190 #define BBRAM_RADIO_CFG_7_SYNTH_LUT_CONTROL(x) ((x & 0x3) << 4)
191 #define BBRAM_RADIO_CFG_7_SYNTH_LUT_CONFIG_1(x) ((x & 0xF) << 0)
194 #define BBRAM_RADIO_CFG_8_PA_SINGLE_DIFF_SEL (0x1 << 7)
195 #define BBRAM_RADIO_CFG_8_PA_LEVEL(x) ((x & 0xF) << 3)
196 #define BBRAM_RADIO_CFG_8_PA_RAMP(x) ((x & 0x7) << 0)
199 #define BBRAM_RADIO_CFG_9_IFBW(x) ((x & 0x3) << 6)
200 #define BBRAM_RADIO_CFG_9_MOD_SCHEME(x) ((x & 0x7) << 3)
201 #define BBRAM_RADIO_CFG_9_DEMOD_SCHEME(x) ((x & 0x7) << 0)
204 #define BBRAM_RADIO_CFG_10_AFC_POLARITY (0x0 << 4)
205 #define BBRAM_RADIO_CFG_10_AFC_SCHEME(x) ((x & 0x3) << 2)
206 #define BBRAM_RADIO_CFG_10_AFC_LOCK_MODE(x) ((x & 0x3) << 0)
209 #define BBRAM_RADIO_CFG_11_AFC_KP(x) ((x & 0xF) << 4)
210 #define BBRAM_RADIO_CFG_11_AFC_KI(x) ((x & 0xF) << 0)
213 #define BBRAM_MODE_CONTROL_SWM_EN (0x1 << 7)
214 #define BBRAM_MODE_CONTROL_BB_CAL (0x1 << 6)
215 #define BBRAM_MODE_CONTROL_SWM_RSSI_QUAL (0x1 << 5)
216 #define BBRAM_MODE_CONTROL_TX_TO_RX_AUTO_TURNAROUND (0x1 << 4)
217 #define BBRAM_MODE_CONTROL_RX_TO_TX_AUTO_TURNAROUND (0x1 << 3)
218 #define BBRAM_MODE_CONTROL_CUSTOM_TRX_SYNTH_LOCK_TIME_EN (0x1 << 2)
219 #define BBRAM_MODE_CONTROL_EXT_LNA_EN (0x1 << 1)
220 #define BBRAM_MODE_CONTROL_EXT_PA_EN (0x1 << 0)
223 #define BBRAM_SYMBOL_MODE_MANCHESTER_ENC (0x1 << 6)
224 #define BBRAM_SYMBOL_MODE_PROG_CRC_EN (0x1 << 5)
225 #define BBRAM_SYMBOL_MODE_EIGHT_TEN_ENC (0x1 << 4)
226 #define BBRAM_SYMBOL_MODE_DATA_WHITENING (0x1 << 3)
227 #define BBRAM_SYMBOL_MODE_SYMBOL_LENGTH(x) ((x & 0x7) << 0)
230 #define BBRAM_SYNC_CONTROL_SYNC_ERROR_TOL(x) ((x & 0x3) << 6)
231 #define BBRAM_SYNC_CONTROL_SYNC_WORD_LENGTH(x) ((x & 0x1F) << 0)
234 #define BBRAM_PACKET_LENGTH_CONTROL_DATA_BYTE (0x1 << 7)
235 #define BBRAM_PACKET_LENGTH_CONTROL_PACKET_LEN (0x1 << 6)
236 #define BBRAM_PACKET_LENGTH_CONTROL_CRC_EN (0x1 << 5)
237 #define BBRAM_PACKET_LENGTH_CONTROL_DATA_MODE(x) ((x & 0x3) << 3)
238 #define BBRAM_PACKET_LENGTH_CONTROL_LENGTH_OFFSET(x) ((x & 0x7) << 0)
241 #define BBRAM_TESTMODES_EXT_PA_LNA_ATB_CONFIG (0x1 << 7)
242 #define BBRAM_TESTMODES_PER_IRQ_SELF_CLEAR (0x1 << 3)
243 #define BBRAM_TESTMODES_PER_ENABLE (0x1 << 2)
244 #define BBRAM_TESTMODES_CONTINUOUS_TX (0x1 << 1)
245 #define BBRAM_TESTMODES_CONTINUOUS_RX (0x1 << 0)
248 #define MCR_REG_PA_LEVEL_MCR 0x307
249 #define MCR_REG_WUC_CONFIG_HIGH 0x30C
250 #define MCR_REG_WUC_CONFIG_LOW 0x30D
251 #define MCR_REG_WUC_VALUE_HIGH 0x30E
252 #define MCR_REG_WUC_VALUE_LOW 0x30F
253 #define MCR_REG_WUC_FLAG_RESET 0x310
254 #define MCR_REG_WUC_STATUS 0x311
255 #define MCR_REG_RSSI_READBACK 0x312
256 #define MCR_REG_MAX_AFC_RANGE 0x315
257 #define MCR_REG_IMAGE_REJECT_CAL_CONFIG 0x319
258 #define MCR_REG_CHIP_SHUTDOWN 0x322
259 #define MCR_REG_POWERDOWN_RX 0x324
260 #define MCR_REG_POWERDOWN_AUX 0x325
261 #define MCR_REG_ADC_READBACK_HIGH 0x327
262 #define MCR_REG_ADC_READBACK_LOW 0x328
263 #define MCR_REG_BATTERY_MONITOR_THRESHOLD_VOLTAGE 0x32D
264 #define MCR_REG_EXT_UC_CLK_DIVIDE 0x32E
265 #define MCR_REG_AGC_CLK_DIVIDE 0x32F
266 #define MCR_REG_INTERRUPT_SOURCE_0 0x336
267 #define MCR_REG_INTERRUPT_SOURCE_1 0x337
268 #define MCR_REG_CALIBRATION_CONTROL 0x338
269 #define MCR_REG_CALIBRATION_STATUS 0x339
270 #define MCR_REG_RXBB_CAL_CALWRD_READBACK 0x345
271 #define MCR_REG_RXBB_CAL_CALWRD_OVERWRITE 0x346
272 #define MCR_REG_RCOSC_CAL_READBACK_HIGH 0x34F
273 #define MCR_REG_RCOSC_CAL_READBACK_LOW 0x350
274 #define MCR_REG_ADC_CONFIG_LOW 0x359
275 #define MCR_REG_ADC_CONFIG_HIGH 0x35A
276 #define MCR_REG_AGC_OOK_CONTROL 0x35B
277 #define MCR_REG_AGC_CONFIG 0x35C
278 #define MCR_REG_AGC_MODE 0x35D
279 #define MCR_REG_AGC_LOW_THRESHOLD 0x35E
280 #define MCR_REG_AGC_HIGH_THRESHOLD 0x35F
281 #define MCR_REG_AGC_GAIN_STATUS 0x360
282 #define MCR_REG_AGC_ADC_WORD 0x361
283 #define MCR_REG_FREQUENCY_ERROR_READBACK 0x372
284 #define MCR_REG_VCO_BAND_OVRW_VAL 0x3CB
285 #define MCR_REG_VCO_AMPL_OVRW_VAL 0x3CC
286 #define MCR_REG_VCO_OVRW_EN 0x3CD
287 #define MCR_REG_VCO_CAL_CFG 0x3D0
288 #define MCR_REG_OSC_CONFIG 0x3D2
289 #define MCR_REG_VCO_BAND_READBACK 0x3DA
290 #define MCR_REG_VCO_AMPL_READBACK 0x3DB
291 #define MCR_REG_ANALOG_TEST_BUS 0x3F8
292 #define MCR_REG_RSSI_TSTMUX_SEL 0x3F9
293 #define MCR_REG_GPIO_CONFIGURE 0x3FA
294 #define MCR_REG_TEST_DAC_GAIN 0x3FD
363 #define ADF7023_TX_BASE_ADR 0x10
364 #define ADF7023_RX_BASE_ADR 0x10
445 #endif // __ADF7023_H__
void adf7023_transmit_packet(struct adf7023_dev *dev, uint8_t *packet, uint8_t length)
Transmits one packet.
Definition: adf7023.c:308
struct adf7023_bbram adf7023_bbram_current
Definition: adf7023.h:377
uint8_t reserved2
Definition: adf7023.h:358
#define SPI_MEM_RD
Definition: adf7023.h:65
uint32_t timeout
Definition: ad413x.c:49
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
uint8_t address_filtering10
Definition: adf7023.h:350
uint8_t radio_cfg5
Definition: adf7023.h:314
#define FW_STATE_PHY_OFF
Definition: adf7023.h:52
uint8_t mode_control
Definition: adf7023.h:323
uint8_t radio_cfg4
Definition: adf7023.h:313
#define ADF7023_CS_DEASSERT
Definition: adf7023.c:47
Definition: adf7023.h:380
int32_t no_os_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI.
Definition: no_os_spi.c:159
void adf7023_set_command(struct adf7023_dev *dev, uint8_t command)
Initiates a command.
Definition: adf7023.c:179
uint8_t number_of_wakeups0
Definition: adf7023.h:299
void adf7023_set_fw_state(struct adf7023_dev *dev, uint8_t fw_state)
Sets a FW state and waits until the device enters in that state.
Definition: adf7023.c:195
void adf7023_write_read_byte(struct adf7023_dev *dev, uint8_t write_byte, uint8_t *read_byte)
Transfers one byte of data.
Definition: adf7023.c:64
Header file of SPI Interface.
#define CMD_PHY_RX
Definition: adf7023.h:74
#define CMD_PHY_TX
Definition: adf7023.h:75
struct no_os_spi_desc * spi_desc
Definition: adf7023.h:372
int32_t no_os_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: no_os_gpio.c:221
uint8_t radio_cfg6
Definition: adf7023.h:315
#define ADF7023_CS_ASSERT
Definition: adf7023.c:45
uint8_t syncControl
Definition: adf7023.h:329
uint8_t packet_length_max
Definition: adf7023.h:336
uint8_t image_reject_cal_phase
Definition: adf7023.h:321
uint8_t address_filtering4
Definition: adf7023.h:344
#define BBRAM_RADIO_CFG_1_FREQ_DEVIATION_11_8(x)
Definition: adf7023.h:178
uint8_t rx_base_adr
Definition: adf7023.h:334
int32_t adf7023_remove(struct adf7023_dev *dev)
Free the resources allocated by adf7023_init().
Definition: adf7023.c:140
uint8_t crc_poly0
Definition: adf7023.h:327
struct no_os_gpio_init_param gpio_miso
Definition: adf7023.h:385
Definition: ad9361_util.h:69
Configuration file of ADF7023 Driver.
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
uint8_t tx_synth_lock_time
Definition: adf7023.h:360
#define BBRAM_RADIO_CFG_2_FREQ_DEVIATION_7_0(x)
Definition: adf7023.h:182
uint8_t rx_synth_lock_time
Definition: adf7023.h:359
void adf7023_set_channel_frequency(struct adf7023_dev *dev, uint32_t ch_freq)
Sets the channel frequency.
Definition: adf7023.c:336
#define FW_STATE_PHY_RX
Definition: adf7023.h:54
#define BBRAM_RADIO_CFG_0_DATA_RATE_7_0(x)
Definition: adf7023.h:175
void adf7023_set_frequency_deviation(struct adf7023_dev *dev, uint32_t freq_dev)
Sets the frequency deviation.
Definition: adf7023.c:376
Header file of ADF7023 Driver.
#define FW_STATE_PHY_ON
Definition: adf7023.h:53
void adf7023_get_status(struct adf7023_dev *dev, uint8_t *status)
Reads the status word of the ADF7023.
Definition: adf7023.c:162
uint8_t address_filtering1
Definition: adf7023.h:341
uint8_t sync_byte0
Definition: adf7023.h:330
uint8_t reserved1
Definition: adf7023.h:357
uint8_t address_filtering9
Definition: adf7023.h:349
uint8_t preamble_match
Definition: adf7023.h:324
uint8_t parmtime_divider
Definition: adf7023.h:304
uint8_t address_filtering12
Definition: adf7023.h:352
void adf7023_set_fw_state(struct adf7023_dev *dev, uint8_t fw_state)
Sets a FW state and waits until the device enters in that state.
Definition: adf7023.c:195
uint8_t swm_rssi_thresh
Definition: adf7023.h:305
void adf7023_set_data_rate(struct adf7023_dev *dev, uint32_t data_rate)
Sets the data rate.
Definition: adf7023.c:354
#define BBRAM_INTERRUPT_MASK_0_INTERRUPT_CRC_CORRECT
Definition: adf7023.h:163
#define BBRAM_INTERRUPT_MASK_0_INTERRUPT_TX_EOF
Definition: adf7023.h:161
uint8_t channel_freq2
Definition: adf7023.h:308
uint8_t address_match_offset
Definition: adf7023.h:338
uint8_t radio_cfg11
Definition: adf7023.h:320
#define MCR_REG_INTERRUPT_SOURCE_0
Definition: adf7023.h:266
void adf7023_transmit_packet(struct adf7023_dev *dev, uint8_t *packet, uint8_t length)
Transmits one packet.
Definition: adf7023.c:308
uint8_t testmodes
Definition: adf7023.h:354
uint8_t interrupt_mask1
Definition: adf7023.h:298
void adf7023_get_ram(struct adf7023_dev *dev, uint32_t address, uint32_t length, uint8_t *data)
Reads data from the RAM.
Definition: adf7023.c:231
uint8_t address_filtering8
Definition: adf7023.h:348
int32_t no_os_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: no_os_gpio.c:104
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
uint8_t radio_cfg0
Definition: adf7023.h:309
uint8_t channel_freq1
Definition: adf7023.h:307
#define CMD_PHY_SLEEP
Definition: adf7023.h:76
uint8_t number_of_wakeups_irq_threshold1
Definition: adf7023.h:302
uint8_t rx_dwell_time
Definition: adf7023.h:303
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
Definition: adf7023.h:370
struct no_os_spi_init_param spi_init
Definition: adf7023.h:382
uint8_t address_filtering0
Definition: adf7023.h:340
uint8_t transition_clock_div
Definition: adf7023.h:355
int32_t no_os_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: no_os_gpio.c:49
uint8_t number_of_wakeups1
Definition: adf7023.h:300
uint8_t static_reg_fix
Definition: adf7023.h:337
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
void adf7023_get_ram(struct adf7023_dev *dev, uint32_t address, uint32_t length, uint8_t *data)
Reads data from the RAM.
Definition: adf7023.c:231
struct adf7023_bbram adf7023_bbram_default
Definition: adf7023_config.h:45
uint8_t radio_cfg10
Definition: adf7023.h:319
uint8_t reserved0
Definition: adf7023.h:356
struct no_os_gpio_desc * gpio_cs
Definition: adf7023.h:374
void adf7023_receive_packet(struct adf7023_dev *dev, uint8_t *packet, uint8_t *length)
Receives one packet.
Definition: adf7023.c:279
uint8_t radio_cfg9
Definition: adf7023.h:318
uint8_t sync_byte2
Definition: adf7023.h:332
uint8_t radio_cfg3
Definition: adf7023.h:312
#define CMD_PHY_OFF
Definition: adf7023.h:72
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
void adf7023_set_ram(struct adf7023_dev *dev, uint32_t address, uint32_t length, uint8_t *data)
Writes data to RAM.
Definition: adf7023.c:256
void adf7023_get_status(struct adf7023_dev *dev, uint8_t *status)
Reads the status word of the ADF7023.
Definition: adf7023.c:162
uint8_t channel_freq0
Definition: adf7023.h:306
uint8_t address_filtering5
Definition: adf7023.h:345
int32_t adf7023_remove(struct adf7023_dev *dev)
Free the resources allocated by adf7023_init().
Definition: adf7023.c:140
struct no_os_gpio_init_param gpio_cs
Definition: adf7023.h:384
uint8_t number_of_wakeups_irq_threshold0
Definition: adf7023.h:301
void adf7023_set_ram(struct adf7023_dev *dev, uint32_t address, uint32_t length, uint8_t *data)
Writes data to RAM.
Definition: adf7023.c:256
#define STATUS_FW_STATE
Definition: adf7023.h:47
uint8_t tx_base_adr
Definition: adf7023.h:333
uint8_t interrupt_mask0
Definition: adf7023.h:297
void adf7023_set_channel_frequency(struct adf7023_dev *dev, uint32_t ch_freq)
Sets the channel frequency.
Definition: adf7023.c:336
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
void adf7023_set_data_rate(struct adf7023_dev *dev, uint32_t data_rate)
Sets the data rate.
Definition: adf7023.c:354
uint8_t radio_cfg8
Definition: adf7023.h:317
#define FW_STATE_PHY_TX
Definition: adf7023.h:55
uint8_t symbol_mode
Definition: adf7023.h:325
uint8_t address_filtering11
Definition: adf7023.h:351
uint8_t address_filtering3
Definition: adf7023.h:343
uint8_t rssi_wait_time
Definition: adf7023.h:353
#define CMD_CONFIG_DEV
Definition: adf7023.h:77
uint8_t address_filtering7
Definition: adf7023.h:347
void adf7023_receive_packet(struct adf7023_dev *dev, uint8_t *packet, uint8_t *length)
Receives one packet.
Definition: adf7023.c:279
int32_t no_os_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: no_os_spi.c:116
Definition: adf7023.h:296
uint8_t address_filtering6
Definition: adf7023.h:346
Header file of GPIO Interface.
uint8_t radio_cfg7
Definition: adf7023.h:316
uint8_t address_length
Definition: adf7023.h:339
int32_t adf7023_init(struct adf7023_dev **device, struct adf7023_init_param init_param)
Initializes the ADF7023.
Definition: adf7023.c:89
#define BBRAM_RADIO_CFG_1_DATA_RATE_11_8(x)
Definition: adf7023.h:179
struct no_os_gpio_desc * gpio_miso
Definition: adf7023.h:375
#define SPI_MEM_WR
Definition: adf7023.h:64
uint8_t crc_poly1
Definition: adf7023.h:328
int32_t no_os_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: no_os_spi.c:52
#define CMD_PHY_ON
Definition: adf7023.h:73
uint8_t radio_cfg2
Definition: adf7023.h:311
int32_t adf7023_init(struct adf7023_dev **device, struct adf7023_init_param init_param)
Initializes the ADF7023.
Definition: adf7023.c:89
#define STATUS_CMD_READY
Definition: adf7023.h:46
#define SPI_NOP
Definition: adf7023.h:68
int32_t no_os_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: no_os_gpio.c:147
uint8_t packet_length_control
Definition: adf7023.h:335
uint8_t radio_cfg1
Definition: adf7023.h:310
void adf7023_set_command(struct adf7023_dev *dev, uint8_t command)
Initiates a command.
Definition: adf7023.c:179
uint8_t address_filtering2
Definition: adf7023.h:342
uint8_t image_reject_cal_amplitude
Definition: adf7023.h:322
void adf7023_set_frequency_deviation(struct adf7023_dev *dev, uint32_t freq_dev)
Sets the frequency deviation.
Definition: adf7023.c:376
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140
uint8_t preamble_len
Definition: adf7023.h:326
uint8_t sync_byte1
Definition: adf7023.h:331