![]() |
PU2CLR Si4735 Arduino Library
1.1.9
Arduino Library for Si47XX Devices - By Ricardo Lima Caratti
|
SI473X data representation. More...
Data Structures | |
union | si473x_powerup |
Power Up arguments data type. More... | |
struct | si473x_powerup.arg |
union | si473x_gpio |
Data type for Enables output for GPO1, GPO2 and GPO3. More... | |
union | si473x_gpio_ien |
Data type for Configuring the sources for the GPO2/INT interrupt pin. More... | |
struct | si473x_gpio_ien.arg |
struct | si473x_gpio.arg |
union | si47x_frequency |
Represents how the frequency is stored in the si4735. More... | |
struct | si47x_frequency.raw |
union | si47x_antenna_capacitor |
Antenna Tuning Capacitor data type manupulation. More... | |
struct | si47x_antenna_capacitor.raw |
union | si47x_set_frequency |
AM Tune frequency data type command (AM_TUNE_FREQ command) More... | |
struct | si47x_set_frequency.arg |
union | si47x_seek |
Seek frequency (automatic tuning) More... | |
struct | si47x_seek.arg |
union | si47x_status |
Status response data representation. More... | |
struct | si47x_status.refined |
union | si47x_response_status |
Response status command. More... | |
struct | si47x_response_status.resp |
union | si47x_firmware_information |
Data representation for Firmware Information (GET_REV) More... | |
struct | si47x_firmware_information.resp |
union | si47x_firmware_query_library |
Firmware Query Library ID response. More... | |
struct | si47x_firmware_query_library.resp |
union | si47x_tune_status |
Seek station status. More... | |
struct | si47x_tune_status.arg |
union | si47x_property |
Data type to deal with SET_PROPERTY command. More... | |
struct | si47x_property.raw |
SI473X data representation.
The goal here is separate data from code. The Si47XX family works with many internal data that can be represented by data structure or defined data type in C/C++. These C/C++ resources have been used widely here.
This aproach made the library easier to build and maintain. Each data structure created here has its reference (name of the document and page on which it was based). In other words, to make the SI47XX device easier to deal, some defined data types were created to handle byte and bits to process commands, properties and responses. These data types will be usefull to deal with SI473X
union si473x_powerup |
Power Up arguments data type.
Data Fields | ||
---|---|---|
struct si473x_powerup | arg | Refined powerup parameters. |
uint8_t | raw[2] | Raw powerup parameters data. Same arg memory position. So, same content. |
struct si473x_powerup.arg |
union si473x_gpio |
Data type for Enables output for GPO1, GPO2 and GPO3.
GPO1, 2, and 3 can be configured for output (Hi-Z or active drive) by setting the GPO1OEN, GPO2OEN, and GPO3OEN bit.
Data Fields | ||
---|---|---|
struct si473x_gpio | arg | Refined powerup parameters. |
uint8_t | raw |
union si473x_gpio_ien |
Data type for Configuring the sources for the GPO2/INT interrupt pin.
Valid sources are the lower 8 bits of the STATUS byte, including CTS, ERR, RSQINT, and STCINT bits.
Data Fields | ||
---|---|---|
struct si473x_gpio_ien | arg | |
uint16_t | raw |
struct si473x_gpio_ien.arg |
struct si473x_gpio.arg |
union si47x_frequency |
Represents how the frequency is stored in the si4735.
It helps to convert frequency in uint16_t to two bytes (uint8_t) (FREQL and FREQH)
Data Fields | ||
---|---|---|
struct si47x_frequency | raw | Raw data that represents the frequency stored in the Si47XX device. |
uint16_t | value | frequency (integer value) |
struct si47x_frequency.raw |
union si47x_antenna_capacitor |
Antenna Tuning Capacitor data type manupulation.
Data Fields | ||
---|---|---|
struct si47x_antenna_capacitor | raw | |
uint16_t | value |
struct si47x_antenna_capacitor.raw |
union si47x_set_frequency |
AM Tune frequency data type command (AM_TUNE_FREQ command)
Data Fields | ||
---|---|---|
struct si47x_set_frequency | arg | |
uint8_t | raw[5] |
struct si47x_set_frequency.arg |
union si47x_seek |
Seek frequency (automatic tuning)
Represents searching for a valid frequency data type.
Data Fields | ||
---|---|---|
struct si47x_seek | arg | |
uint8_t | raw |
struct si47x_seek.arg |
union si47x_status |
Status response data representation.
Represents searching for a valid frequency data type.
Data Fields | ||
---|---|---|
struct si47x_status | refined | |
uint8_t | raw |
struct si47x_status.refined |
union si47x_response_status |
Response status command.
Response data from a query status command
Data Fields | ||
---|---|---|
struct si47x_response_status | resp | |
uint8_t | raw[8] | Check it. |
struct si47x_response_status.resp |
union si47x_firmware_information |
Data representation for Firmware Information (GET_REV)
The part number, chip revision, firmware revision, patch revision and component revision numbers.
Data Fields | ||
---|---|---|
struct si47x_firmware_information | resp | |
uint8_t | raw[9] |
struct si47x_firmware_information.resp |
union si47x_firmware_query_library |
Firmware Query Library ID response.
Used to represent the response of a power up command with FUNC = 15 (patch)
To confirm that the patch is compatible with the internal device library revision, the library revision should be confirmed by issuing the POWER_UP command with Function = 15 (query library ID)
Data Fields | ||
---|---|---|
struct si47x_firmware_query_library | resp | |
uint8_t | raw[8] |
struct si47x_firmware_query_library.resp |
union si47x_tune_status |
Seek station status.
Status of FM_TUNE_FREQ or FM_SEEK_START commands or Status of AM_TUNE_FREQ or AM_SEEK_START commands.
Data Fields | ||
---|---|---|
struct si47x_tune_status | arg | |
uint8_t | raw |
struct si47x_tune_status.arg |
union si47x_property |
Data type to deal with SET_PROPERTY command.
Property Data type (help to deal with SET_PROPERTY command on si473X)
Data Fields | ||
---|---|---|
struct si47x_property | raw | |
uint16_t | value |