![]() |
no-OS
|
Macros | |
| #define | DATA_MASK_MSB8 0xFF0000 |
| #define | DATA_OFFSET_MSB8 16 |
| #define | DATA_MASK_MID8 0xFF00 |
| #define | DATA_OFFSET_MID8 8 |
| #define | DATA_MASK_LSB8 0xFF |
| #define | DATA_OFFSET_LSB8 0 |
| #define | ADDRESS_MASK 3 |
| #define | FREQ_2_4_GHZ 2400000000u |
| #define | FREQ_5_2_GHZ 5200000000u |
Functions | |
| int8_t | adf4106_init (struct adf4106_dev **device, struct adf4106_init_param init_param) |
| Initialize SPI and Initial Values for ADF4106 Board. | |
| int32_t | adf4106_remove (struct adf4106_dev *dev) |
| Free the resources allocated by adf4106_init(). | |
| void | adf4106_update_latch (struct adf4106_dev *dev, uint32_t latch_data) |
| Update one of the latch via the SPI interface. | |
| void | adf4106_init_latch_method (struct adf4106_dev *dev) |
| Initialization latch method. | |
| void | adf4106_init_cepin_method (struct adf4106_dev *dev) |
| CE Pin method. | |
| void | adf4106_init_counte_reset_method (struct adf4106_dev *dev) |
| Counter reset method. | |
| uint32_t | adf4106_read_latch (struct adf4106_dev *dev, uint8_t latch_type) |
| Return the value of a desired latch. | |
| uint16_t | adf4106_tune_rcounter (struct adf4106_dev *dev, uint16_t r_counter) |
| Increases the R counter value until the ADF4106_PDF_MAX_FREQ is greater than PFD frequency. | |
| uint64_t | adf4106_set_frequency (struct adf4106_dev *dev, uint64_t frequency) |
| Sets the output frequency. | |
Variables | |
| const struct adf4106_chip_info | chip_info [] |
| #define ADDRESS_MASK 3 |
| #define DATA_MASK_LSB8 0xFF |
| #define DATA_MASK_MID8 0xFF00 |
| #define DATA_MASK_MSB8 0xFF0000 |
| #define DATA_OFFSET_LSB8 0 |
| #define DATA_OFFSET_MID8 8 |
| #define DATA_OFFSET_MSB8 16 |
| #define FREQ_2_4_GHZ 2400000000u |
| #define FREQ_5_2_GHZ 5200000000u |
| int8_t adf4106_init | ( | struct adf4106_dev ** | device, |
| struct adf4106_init_param | init_param ) |
Initialize SPI and Initial Values for ADF4106 Board.
| device | - The device structure. |
| init_param | - The structure that contains the device initial parameters. |
| void adf4106_init_cepin_method | ( | struct adf4106_dev * | dev | ) |
CE Pin method.
| dev | - The device structure. |
| void adf4106_init_counte_reset_method | ( | struct adf4106_dev * | dev | ) |
Counter reset method.
| dev | - The device structure. |
| void adf4106_init_latch_method | ( | struct adf4106_dev * | dev | ) |
Initialization latch method.
| dev | - The device structure. |
| uint32_t adf4106_read_latch | ( | struct adf4106_dev * | dev, |
| uint8_t | latch_type ) |
Return the value of a desired latch.
| dev | - The device structure. |
| latch_type | - the type of the latch: 0 - 'ADF4106_CTRL_R_COUNTER' 1 - 'ADF4106_CTRL_N_COUNTER' 2 - 'ADF4106_CTRL_FUNCTION_LATCH' 3 - 'ADF4106_CTRL_INIT_LATCH' |
| int32_t adf4106_remove | ( | struct adf4106_dev * | dev | ) |
Free the resources allocated by adf4106_init().
| dev | - The device structure. |
| uint64_t adf4106_set_frequency | ( | struct adf4106_dev * | dev, |
| uint64_t | frequency ) |
Sets the output frequency.
| dev | - The device structure. |
| frequency | - The desired frequency value. |
| uint16_t adf4106_tune_rcounter | ( | struct adf4106_dev * | dev, |
| uint16_t | r_counter ) |
Increases the R counter value until the ADF4106_PDF_MAX_FREQ is greater than PFD frequency.
| dev | - The device structure. |
| r_counter | - R counter value. |
| void adf4106_update_latch | ( | struct adf4106_dev * | dev, |
| uint32_t | latch_data ) |
Update one of the latch via the SPI interface.
| dev | - The device structure. |
| latch_data | - the data which will be written to the latch |
| const struct adf4106_chip_info chip_info[] |