max4146x_comp
MAX41464 Class Reference
MAX41464 Device Class. More...
#include <Max4146x.h>
Inherits MAX41463.
Public Types | |
enum | xoclkdelay_t |
Register Configuration. More... | |
enum | xoclkdiv_t |
Register Configuration. More... | |
enum | fskshape_t |
Register Configuration. More... | |
enum | sync_t |
Register Configuration. More... | |
enum | modmode_t |
Register Configuration. More... | |
enum | clkout_delay_t |
Register Configuration. More... | |
enum | bclk_postdiv_t |
Register Configuration. More... | |
enum | pwdn_mode_t |
Register Configuration. More... | |
enum | pa_boost_t |
Register Configuration. More... | |
enum | papwr_t |
Register Configuration. More... | |
enum | pacap_t |
Register Configuration. More... | |
enum | cplin_t |
Register Configuration. More... | |
enum | fracmode_t |
Register Configuration. More... | |
enum | lomode_t |
Register Configuration. More... | |
enum | cpval_t |
Register Configuration. More... | |
enum | i2c_txen1_t |
Register Configuration. More... | |
enum | spi_txen1_t |
Register Configuration. More... | |
enum | fourwire1_t |
Register Configuration. More... | |
enum | i2c_txen2_t |
Register Configuration. More... | |
enum | spi_txen2_t |
Register Configuration. More... | |
enum | fourwire2_t |
Register Configuration. More... | |
enum | pktlen_mode_t |
Register Configuration. More... | |
enum | softreset_t |
Register Configuration. More... | |
enum | operation_mode_t |
Operation state of the rf transmitter. More... | |
Public Member Functions | |
int | set_xoclkdelay (xoclkdelay_t delay) |
Set start delay before enabling XO clock to digital block. | |
int | get_xoclkdelay (xoclkdelay_t *delay) |
Get start delay before enabling XO clock to digital block. | |
int | set_xoclkdiv (xoclkdiv_t div) |
Set XO clock division ratio for digital block. | |
int | get_xoclkdiv (xoclkdiv_t *div) |
Get XO clock division ratio for digital block. | |
int | set_fskshape (fskshape_t shape) |
Sets the state of FSK Gaussian Shaping. | |
int | get_fskshape (fskshape_t *shape) |
Gets the state of FSK Gaussian Shaping. | |
int | set_sync (sync_t state) |
Sets the state of clock pin. | |
int | get_sync (sync_t *state) |
Gets the state of clock pin. | |
int | set_modmode (modmode_t mode) |
Sets modulator mode to ASK or FSK. | |
int | get_modmode (modmode_t *mode) |
Gets modulator mode. | |
int | set_clkout_delay (clkout_delay_t delay) |
Sets clkout delay. | |
int | get_clkout_delay (clkout_delay_t *delay) |
Gets clkout delay. | |
int | set_bclk_postdiv (bclk_postdiv_t div) |
Sets baud clock post-divider. | |
int | get_bclk_postdiv (bclk_postdiv_t *div) |
Gets baud clock post-divider. | |
int | set_pwdn_mode (pwdn_mode_t pwdn_mode) |
Sets power down mode. | |
int | get_pwdn_mode (pwdn_mode_t *pwdn_mode) |
Gets power down mode. | |
int | set_pa_boost (pa_boost_t pa_boost) |
enable/disable boost mode | |
int | get_pa_boost (pa_boost_t *pa_boost) |
Gets boost mode. | |
int | set_papwr (papwr_t papwr) |
set PA output power by enabling parallel drivers | |
int | get_papwr (papwr_t *papwr) |
Gets PA output power. | |
int | set_pacap (pacap_t pacap) |
set shunt capacitance value | |
int | get_pacap (pacap_t *pacap) |
Gets shunt capacitance value. | |
int | set_cplin (cplin_t cplin) |
set level of charge pump offset current | |
int | get_cplin (cplin_t *cplin) |
Gets level of charge pump offset current. | |
int | set_fracmode (fracmode_t fracmode) |
set PLL mode | |
int | get_fracmode (fracmode_t *fracmode) |
Gets PLL mode. | |
int | set_lodiv (lodiv_t lodiv) |
set divider of LC VCO | |
int | get_lodiv (lodiv_t *lodiv) |
Gets divider of LC VCO. | |
int | set_lomode (lomode_t lomode) |
set LO generation | |
int | get_lomode (lomode_t *lomode) |
Gets LO generation. | |
int | set_cpval (cpval_t cpval) |
set charge pump current | |
int | get_cpval (cpval_t *cpval) |
Gets charge pump current. | |
int | set_pktlen_mode (pktlen_mode_t pktlen_mode) |
set packet length | |
int | get_pktlen_mode (pktlen_mode_t *pktlen_mode) |
Gets packet length. | |
int | set_softreset (softreset_t softreset) |
set softreset bit | |
int | get_fifo_flags (uint8_t *fifo_flags) |
get fifo flags (I2C6) Read only | |
int | get_pktcomplete (uint8_t *pktcomplete) |
get pktcomplete bit field flags (I2C4) Read only | |
int | get_tx_pktlen (uint16_t *pktlen) |
get packet length of transmitted packet | |
int | read_register (uint8_t reg, uint8_t *value, uint8_t len) |
Read from a register. | |
int | write_register (uint8_t reg, const uint8_t *value, uint8_t len) |
Write to a register. | |
int | initial_programming (void) |
Initial programming steps after power on or soft reset. | |
int | set_bclk_prediv (uint8_t prediv) |
Set Baud clock predivision ratio. | |
int | get_bclk_prediv (uint8_t *prediv) |
Gets Baud clock predivision ratio. | |
int | set_tstep (uint8_t tstep) |
Controls GFSK shaping. | |
int | get_tstep (uint8_t *tstep) |
Gets tstep. | |
int | set_frequency (uint32_t freq) |
Set PLL frequency. | |
int | get_frequency (uint32_t *freq) |
Gets PLL frequency. | |
int | set_deltaf (uint8_t deltaf) |
Set frequency deviation from the space frequency for the mark frequency. | |
int | get_deltaf (uint8_t *deltaf) |
Get frequency deviation from the space frequency for the mark frequency. | |
int | set_deltaf_shape (uint8_t deltaf_shape) |
Set frequency deviation from the space frequency for the mark frequency. | |
int | get_deltaf_shape (uint8_t *deltaf_shape) |
Gets frequency deviation from the space frequency for the mark frequency. | |
int | set_i2c_pktlen (uint16_t pktlen) |
Set Packet Length for I2C communication. | |
int | get_i2c_pktlen (uint16_t *pktlen) |
Gets Packet Length for I2C communication. | |
int | adjust_baudrate (float rate) |
Adjust baud rate. | |
float | get_baudrate () |
Gets baud rate. | |
int | adjust_manchester_bitrate (char rate) |
Adjust Manchester Bitrate. | |
char | get_manchester_bitrate () |
Get Manchester Bitrate. | |
int | set_crystal_frequency (float freq) |
Configures the crystal frequency of the chip (Fxtal) | |
float | get_crystal_frequency () |
Get the crystal frequency of the chip (Fxtal) | |
int | set_center_frequency (float freq) |
Adjust center/carrier frequency of the chip. | |
float | get_center_frequency () |
Gets center/carrier frequency of the chip. | |
int | adjust_frequency_deviation (float deviation) |
set the FSK deviation values (Delta_f) | |
int | send_data (uint8_t *data, uint32_t length) |
Send data for selected Preset/I2C/SPI mode. |
Detailed Description
MAX41464 Device Class.
Hold configurations for the MAX41464
Definition at line 1222 of file Max4146x.h.
Member Enumeration Documentation
enum bclk_postdiv_t [inherited] |
Register Configuration.
- Register : CFG2(0x01)
- Bit Fields : [2:0]
- Default : 0x1
- Description : Baud clock post-divider setting.
Definition at line 336 of file Max4146x.h.
enum clkout_delay_t [inherited] |
Register Configuration.
- Register : CFG2(0x01)
- Bit Fields : [7:6]
- Default : 0x2
- Description : Selects the delay when CLKOUT starts toggling upon exiting SHUTDOWN mode, in divided XO clock cycles
Definition at line 298 of file Max4146x.h.
enum cplin_t [inherited] |
Register Configuration.
- Register : PLL1(0x08)
- Bit Fields : [7:6] -Default : 0x1
- Description : Sets the level of charge pump offset current for fractional N mode to improve close in phase noise. Set to 'DISABLED' for integer N mode.
Definition at line 547 of file Max4146x.h.
enum cpval_t [inherited] |
Register Configuration.
- Register : PLL2(0x09)
- Bit Fields : [1:0]
- Default : 0x0
- Description : Sets Charge Pump Current in microAmpere
Definition at line 681 of file Max4146x.h.
enum fourwire1_t [inherited] |
Register Configuration.
- Register : CFG6(0x0A)
- Bit Fields : [0]
- Default : 0b0
- Description : Four wire readback on CLKOUT pin mode.
Definition at line 745 of file Max4146x.h.
enum fourwire2_t [inherited] |
Register Configuration.
- Register : CFG7(0x10)
- Bit Fields : [0]
- Default : 0b0
- Description : Four wire readback on CLKOUT pin mode. Aliased address for FOURWIRE1
Definition at line 790 of file Max4146x.h.
enum fracmode_t [inherited] |
Register Configuration.
- Register : PLL1(0x08)
- Bit Fields : [5]
- Default : 0b1
- Description : Sets PLL between fractional-N and integer-N mode.
Definition at line 583 of file Max4146x.h.
enum fskshape_t [inherited] |
Register Configuration.
- Register : CFG1(0x00)
- Bit Fields : [2]
- Default : 0b0
- Description : Sets the state of FSK Gaussian Shaping
Definition at line 199 of file Max4146x.h.
enum i2c_txen1_t [inherited] |
Register Configuration.
- Register : CFG6(0x0A)
- Bit Fields : [2]
- Default : 0b0
- Description : Enables DATA transmission in I2C mode. Aliased address for I2C_TXEN1.
Definition at line 715 of file Max4146x.h.
enum i2c_txen2_t [inherited] |
Register Configuration.
- Register : CFG7(0x10)
- Bit Fields : [2]
- Default : 0b0
- Description : Enables DATA transmission in I2C mode. Aliased address for I2C_TXEN1
Definition at line 760 of file Max4146x.h.
enum lomode_t [inherited] |
Register Configuration.
- Register : PLL1(0x08)
- Bit Fields : [0]
- Default : 0b0
- Description : Sets LO generation. For lower power, choose LOWCURRENT. For higher performance, choose LOWNOISE
Definition at line 648 of file Max4146x.h.
enum modmode_t [inherited] |
Register Configuration.
- Register : CFG1(0x00)
- Bit Fields : [0]
- Default : 0b0
- Description : Configures modulator mode
Definition at line 264 of file Max4146x.h.
enum operation_mode_t [inherited] |
Operation state of the rf transmitter.
- Default : 0b0
- Description : Places DUT into software reset.
Definition at line 866 of file Max4146x.h.
enum pa_boost_t [inherited] |
Register Configuration.
- Register : SHDN(0x05)
- Bit Fields : [0]
- Default : 0x0
- Description : Enables a boost in PA output power for frequencies above 850MHz. This requires a different PA match compared to normal operation.
Definition at line 412 of file Max4146x.h.
enum pacap_t [inherited] |
Register Configuration.
- Register : PA2(0x07)
- Bit Fields : [4:0]
- Default : 0x00
- Description : Controls shunt capacitance on PA output in fF.
Definition at line 483 of file Max4146x.h.
enum papwr_t [inherited] |
Register Configuration.
- Register : PA1(0x06)
- Bit Fields : [2:0]
- Default : 0x0
- Description : Controls the PA output power by enabling parallel drivers.
Definition at line 444 of file Max4146x.h.
enum pktlen_mode_t [inherited] |
Register Configuration.
- Register : I2C1(0x11)
- Bit Fields : [7]
- Default : 0b0
- Description : Packet Length Mode
Definition at line 807 of file Max4146x.h.
enum pwdn_mode_t [inherited] |
Register Configuration.
- Register : CFG4(0x03)
- Bit Fields : [1:0]
- Default : 0x0
- Description : Power Down Mode Select.
Definition at line 374 of file Max4146x.h.
enum softreset_t [inherited] |
Register Configuration.
- Register : CFG8(0x17)
- Bit Fields : [0]
- Default : 0b0
- Description : Places DUT into software reset.
Definition at line 845 of file Max4146x.h.
enum spi_txen1_t [inherited] |
Register Configuration.
- Register : CFG6(0x0A)
- Bit Fields : [1]
- Default : 0b0
- Description : Transmission enable.
Definition at line 730 of file Max4146x.h.
enum spi_txen2_t [inherited] |
Register Configuration.
- Register : CFG7(0x10)
- Bit Fields : [1]
- Default : 0b0
- Description : Transmission enable.
Definition at line 775 of file Max4146x.h.
enum sync_t [inherited] |
Register Configuration.
- Register : CFG1(0x00)
- Bit Fields : [1]
- Default : 0b0
- Description : Controls if clock output acts as an input. When an input, it will sample the DATA pin.
Definition at line 232 of file Max4146x.h.
enum xoclkdelay_t [inherited] |
Register Configuration.
- Register : CFG1(0x00)
- Bit Fields : [7:6]
- Default : 0x2
- Description : Start delay before enabling XO clock to digital block
Definition at line 130 of file Max4146x.h.
enum xoclkdiv_t [inherited] |
Register Configuration.
-Register : CFG1(0x00)
- Bit Fields : [5:4]
- Default : 0x2
- Description : XO clock division ratio for digital block
Definition at line 164 of file Max4146x.h.
Member Function Documentation
int adjust_baudrate | ( | float | rate ) | [inherited] |
Adjust baud rate.
- Parameters:
-
[in] baud_rate preferred baud rate
- Returns:
- 0 on success, negative error code on failure.
It changes only the values of BCLK_PREDIV and BCLK_POSTDIV Baud_rate = f_clk/((1+BCLK_PREDIV)x2^(1+BCLK_POSTDIV)) where f_clk = f_xtal/XOCLKDIV_ratio Note that to maintain the internal 3.2MHz time base, XOCLKDIV[1:0] (register CFG1, 0x00, bit 4) must be programmed, based on the crystal frequency
int adjust_frequency_deviation | ( | float | deviation ) | [inherited] |
set the FSK deviation values (Delta_f)
- Parameters:
-
[in] deviation deviation value in in kHz baud rate
- Returns:
- 0 on success, negative error code on failure.
The mark frequency is defined by the space frequency plus a frequency deviation. If frequency shaping is disabled by setting FSKSHAPE = 0 (register CFG1, bit 2), the frequency deviation is defined by DELTAF[6:0] (register PLL6, bits 6:0). DELTAF[6 : 0] = (Delta_f * 8192)f_xtal If frequency shaping is enabled by setting FSKSHAPE = 1 (register CFG1, bit 2), the frequency deviation is defined by DETLAF_SHAPE[3:0] (register PLL7, bits 3:0). DELTAF_SHAPE[3 : 0] = (Delta_f * 8192)/(f_xtal * 10)
int adjust_manchester_bitrate | ( | char | rate ) | [inherited] |
Adjust Manchester Bitrate.
- Parameters:
-
[in] data_rate preferred data rate in (1-50)kbps
- Returns:
- 0 on success, negative error code on failure.
float get_baudrate | ( | ) | [inherited] |
Gets baud rate.
- Returns:
- baud rate.
int get_bclk_postdiv | ( | bclk_postdiv_t * | div ) | [inherited] |
Gets baud clock post-divider.
- Parameters:
-
[in] div divider value
- Returns:
- 0 on success, negative error code on failure.
int get_bclk_prediv | ( | uint8_t * | prediv ) | [inherited] |
Gets Baud clock predivision ratio.
- Parameters:
-
[in] prediv values between 3 and 255
- Returns:
- 0 on success, negative error code on failure.
float get_center_frequency | ( | ) | [inherited] |
Gets center/carrier frequency of the chip.
- Returns:
- center/carrier frequency value between 250 MHz and 950 MHz
int get_clkout_delay | ( | clkout_delay_t * | delay ) | [inherited] |
Gets clkout delay.
- Parameters:
-
[in] delay delay cycles
- Returns:
- 0 on success, negative error code on failure.
int get_cplin | ( | cplin_t * | cplin ) | [inherited] |
Gets level of charge pump offset current.
- Parameters:
-
[in] cplin percentage of charge pump current
- Returns:
- 0 on success, negative error code on failure.
int get_cpval | ( | cpval_t * | cpval ) | [inherited] |
Gets charge pump current.
- Parameters:
-
[in] cpval current value
- Returns:
- 0 on success, negative error code on failure.
float get_crystal_frequency | ( | ) | [inherited] |
Get the crystal frequency of the chip (Fxtal)
- Returns:
- crystal frequency values between 12.8 MHz and 19.2 MHz
int get_deltaf | ( | uint8_t * | deltaf ) | [inherited] |
Get frequency deviation from the space frequency for the mark frequency.
- Parameters:
-
[in] deltaf frequency deviation value
- Returns:
- 0 on success, negative error code on failure.
fDELTA = DELTAF[6:0]* fXTAL/8192
int get_deltaf_shape | ( | uint8_t * | deltaf_shape ) | [inherited] |
Gets frequency deviation from the space frequency for the mark frequency.
- Parameters:
-
[in] deltaf_shape frequency deviation value
- Returns:
- 0 on success, negative error code on failure.
fDELTA = DELTAF_SHAPE[3:0]* fXTAL/81920
int get_fifo_flags | ( | uint8_t * | fifo_flags ) | [inherited] |
get fifo flags (I2C6) Read only
- Parameters:
-
[in] fifo_flags 8-bit fifo flags
- Returns:
- 0 on success, negative error code on failure.
int get_fracmode | ( | fracmode_t * | fracmode ) | [inherited] |
Gets PLL mode.
- Parameters:
-
[in] fracmode Integer N/Fractional N mode
- Returns:
- 0 on success, negative error code on failure.
int get_frequency | ( | uint32_t * | freq ) | [inherited] |
Gets PLL frequency.
- Parameters:
-
[in] freq FREQ value to PLL between 0x00 and 0xFFFFFF
- Returns:
- 0 on success, negative error code on failure.
LO frequency = FREQ<23:0>/2^16*fXTAL
int get_fskshape | ( | fskshape_t * | shape ) | [inherited] |
Gets the state of FSK Gaussian Shaping.
- Parameters:
-
[in] shape enable/disable fskshaping
- Returns:
- 0 on success, negative error code on failure.
int get_i2c_pktlen | ( | uint16_t * | pktlen ) | [inherited] |
Gets Packet Length for I2C communication.
- Parameters:
-
[in] pktlen values between 0x00 and 0x7FF
- Returns:
- 0 on success, negative error code on failure.
int get_lodiv | ( | lodiv_t * | lodiv ) | [inherited] |
Gets divider of LC VCO.
- Parameters:
-
[in] lodiv divider value
- Returns:
- 0 on success, negative error code on failure.
int get_lomode | ( | lomode_t * | lomode ) | [inherited] |
Gets LO generation.
- Parameters:
-
[in] lomode selection of mode
- Returns:
- 0 on success, negative error code on failure.
char get_manchester_bitrate | ( | ) | [inherited] |
Get Manchester Bitrate.
- Returns:
- data rate in (1-50)kbps
int get_modmode | ( | modmode_t * | mode ) | [inherited] |
Gets modulator mode.
- Parameters:
-
[in] mode ASK or FSK
- Returns:
- 0 on success, negative error code on failure.
int get_pa_boost | ( | pa_boost_t * | pa_boost ) | [inherited] |
Gets boost mode.
- Parameters:
-
[in] pa_boost power amplifier output mode
- Returns:
- 0 on success, negative error code on failure.
int get_pacap | ( | pacap_t * | pacap ) | [inherited] |
Gets shunt capacitance value.
- Parameters:
-
[in] pacap shunt capacitance value
- Returns:
- 0 on success, negative error code on failure.
int get_papwr | ( | papwr_t * | papwr ) | [inherited] |
Gets PA output power.
- Parameters:
-
[in] papwr number of parallel drivers
- Returns:
- 0 on success, negative error code on failure.
int get_pktcomplete | ( | uint8_t * | pktcomplete ) | [inherited] |
get pktcomplete bit field flags (I2C4) Read only
- Parameters:
-
[in] pktcomplete 0x0: Packet transmission is not completed 0x1: Packet transmission is completed
- Returns:
- 0 on success, negative error code on failure.
int get_pktlen_mode | ( | pktlen_mode_t * | pktlen_mode ) | [inherited] |
Gets packet length.
- Parameters:
-
[in] pktlen_mode packet length mode
- Returns:
- 0 on success, negative error code on failure.
int get_pwdn_mode | ( | pwdn_mode_t * | pwdn_mode ) | [inherited] |
Gets power down mode.
- Parameters:
-
[in] pwdn_mode power down mode
- Returns:
- 0 on success, negative error code on failure.
int get_sync | ( | sync_t * | state ) | [inherited] |
Gets the state of clock pin.
- Parameters:
-
[in] state pin state async/sync
- Returns:
- 0 on success, negative error code on failure.
int get_tstep | ( | uint8_t * | tstep ) | [inherited] |
Gets tstep.
- Parameters:
-
[in] tstep values between 0 and 31
- Returns:
- 0 on success, negative error code on failure.
int get_tx_pktlen | ( | uint16_t * | pktlen ) | [inherited] |
get packet length of transmitted packet
- Parameters:
-
[in] pktlen Provides status information of bits transmitted for the current packet
- Returns:
- 0 on success, negative error code on failure.
int get_xoclkdelay | ( | xoclkdelay_t * | delay ) | [inherited] |
Get start delay before enabling XO clock to digital block.
- Parameters:
-
[in] delay delay cycle
- Returns:
- 0 on success, negative error code on failure.
int get_xoclkdiv | ( | xoclkdiv_t * | div ) | [inherited] |
Get XO clock division ratio for digital block.
- Parameters:
-
[in] div division ratio
- Returns:
- 0 on success, negative error code on failure.
int initial_programming | ( | void | ) | [inherited] |
Initial programming steps after power on or soft reset.
- Returns:
- 0 on success, negative error code on failure.
int read_register | ( | uint8_t | reg, |
uint8_t * | value, | ||
uint8_t | len | ||
) | [inherited] |
Read from a register.
- Parameters:
-
[in] reg Address of a register to be read. [out] value Pointer to save result value. [in] len Size of result to be read.
- Returns:
- 0 on success, negative error code on failure.
int send_data | ( | uint8_t * | data, |
uint32_t | length | ||
) | [inherited] |
Send data for selected Preset/I2C/SPI mode.
- Parameters:
-
[in] data data pointer for data to be transferred [in] length legth of data to be transferred
- Returns:
- 0 on success, negative error code on failure.
int set_bclk_postdiv | ( | bclk_postdiv_t | div ) | [inherited] |
Sets baud clock post-divider.
- Parameters:
-
[in] div divider value
- Returns:
- 0 on success, negative error code on failure.
int set_bclk_prediv | ( | uint8_t | prediv ) | [inherited] |
Set Baud clock predivision ratio.
- Parameters:
-
[in] prediv values between 3 and 255
- Returns:
- 0 on success, negative error code on failure.
int set_center_frequency | ( | float | freq ) | [inherited] |
Adjust center/carrier frequency of the chip.
- Parameters:
-
[in] freq center/carrier frequency value between 250 MHz and 950 MHz
- Returns:
- 0 on success, negative error code on failure.
int set_clkout_delay | ( | clkout_delay_t | delay ) | [inherited] |
Sets clkout delay.
- Parameters:
-
[in] delay delay cycles
- Returns:
- 0 on success, negative error code on failure.
int set_cplin | ( | cplin_t | cplin ) | [inherited] |
set level of charge pump offset current
- Parameters:
-
[in] cplin percentage of charge pump current
- Returns:
- 0 on success, negative error code on failure.
int set_cpval | ( | cpval_t | cpval ) | [inherited] |
set charge pump current
- Parameters:
-
[in] cpval current value
- Returns:
- 0 on success, negative error code on failure.
int set_crystal_frequency | ( | float | freq ) | [inherited] |
Configures the crystal frequency of the chip (Fxtal)
- Parameters:
-
[in] freq crystal frequency values between 12.8 MHz and 19.2 MHz
- Returns:
- 0 on success, negative error code on failure.
int set_deltaf | ( | uint8_t | deltaf ) | [inherited] |
Set frequency deviation from the space frequency for the mark frequency.
- Parameters:
-
[in] deltaf frequency deviation value
- Returns:
- 0 on success, negative error code on failure.
fDELTA = DELTAF[6:0]* fXTAL/8192
int set_deltaf_shape | ( | uint8_t | deltaf_shape ) | [inherited] |
Set frequency deviation from the space frequency for the mark frequency.
- Parameters:
-
[in] deltaf_shape frequency deviation value
- Returns:
- 0 on success, negative error code on failure.
fDELTA = DELTAF_SHAPE[3:0]* fXTAL/81920
int set_fracmode | ( | fracmode_t | fracmode ) | [inherited] |
set PLL mode
- Parameters:
-
[in] fracmode Integer N/Fractional N mode
- Returns:
- 0 on success, negative error code on failure.
int set_frequency | ( | uint32_t | freq ) | [inherited] |
Set PLL frequency.
- Parameters:
-
[in] freq FREQ value to PLL between 0x00 and 0xFFFFFF
- Returns:
- 0 on success, negative error code on failure.
LO frequency = FREQ<23:0>/2^16*fXTAL
int set_fskshape | ( | fskshape_t | shape ) | [inherited] |
Sets the state of FSK Gaussian Shaping.
- Parameters:
-
[in] shape enable/disable fskshaping
- Returns:
- 0 on success, negative error code on failure.
int set_i2c_pktlen | ( | uint16_t | pktlen ) | [inherited] |
Set Packet Length for I2C communication.
- Parameters:
-
[in] pktlen values between 0x00 and 0x7FF
- Returns:
- 0 on success, negative error code on failure.
int set_lodiv | ( | lodiv_t | lodiv ) | [inherited] |
set divider of LC VCO
- Parameters:
-
[in] lodiv divider value
- Returns:
- 0 on success, negative error code on failure.
int set_lomode | ( | lomode_t | lomode ) | [inherited] |
set LO generation
- Parameters:
-
[in] lomode selection of mode
- Returns:
- 0 on success, negative error code on failure.
int set_modmode | ( | modmode_t | mode ) | [inherited] |
Sets modulator mode to ASK or FSK.
- Parameters:
-
[in] mode ASK or FSK
- Returns:
- 0 on success, negative error code on failure.
int set_pa_boost | ( | pa_boost_t | pa_boost ) | [inherited] |
enable/disable boost mode
- Parameters:
-
[in] pa_boost power amplifier output mode
- Returns:
- 0 on success, negative error code on failure.
int set_pacap | ( | pacap_t | pacap ) | [inherited] |
set shunt capacitance value
- Parameters:
-
[in] pacap shunt capacitance value
- Returns:
- 0 on success, negative error code on failure.
int set_papwr | ( | papwr_t | papwr ) | [inherited] |
set PA output power by enabling parallel drivers
- Parameters:
-
[in] papwr number of parallel drivers
- Returns:
- 0 on success, negative error code on failure.
int set_pktlen_mode | ( | pktlen_mode_t | pktlen_mode ) | [inherited] |
set packet length
- Parameters:
-
[in] pktlen_mode packet length mode
- Returns:
- 0 on success, negative error code on failure.
int set_pwdn_mode | ( | pwdn_mode_t | pwdn_mode ) | [inherited] |
Sets power down mode.
- Parameters:
-
[in] pwdn_mode power down mode
- Returns:
- 0 on success, negative error code on failure.
int set_softreset | ( | softreset_t | softreset ) | [inherited] |
set softreset bit
- Parameters:
-
[in] softreset enable/disable
- Returns:
- 0 on success, negative error code on failure.
int set_sync | ( | sync_t | state ) | [inherited] |
Sets the state of clock pin.
- Parameters:
-
[in] state pin state async/sync
- Returns:
- 0 on success, negative error code on failure.
int set_tstep | ( | uint8_t | tstep ) | [inherited] |
Controls GFSK shaping.
- Parameters:
-
[in] tstep values between 0 and 31
- Returns:
- 0 on success, negative error code on failure.
int set_xoclkdelay | ( | xoclkdelay_t | delay ) | [inherited] |
Set start delay before enabling XO clock to digital block.
- Parameters:
-
[in] delay delay cycle
- Returns:
- 0 on success, negative error code on failure.
int set_xoclkdiv | ( | xoclkdiv_t | div ) | [inherited] |
Set XO clock division ratio for digital block.
- Parameters:
-
[in] div division ratio
- Returns:
- 0 on success, negative error code on failure.
int write_register | ( | uint8_t | reg, |
const uint8_t * | value, | ||
uint8_t | len | ||
) | [inherited] |
Write to a register.
- Parameters:
-
[in] reg Address of a register to be written. [out] value Pointer of value to be written to register. [in] len Size of result to be written.
- Returns:
- 0 on success, negative error code on failure.
Generated on Tue Jul 12 2022 16:06:48 by 1.7.2