CDCE906 PLL driver functions.
More...
#include "FreeRTOS.h"
#include "port.h"
#include "cdce906.h"
#include "cdce906_reg.h"
#include "i2c.h"
CDCE906 PLL driver functions.
- Author
- Augusto Fraga Giachero augus.nosp@m.to.f.nosp@m.raga@.nosp@m.cnpe.nosp@m.m.br
◆ cdce906_read_cfg()
int cdce906_read_cfg |
( |
uint8_t | chip_id, |
|
|
cdce906_cfg * | cfg ) |
Read the current CDCE906 configuration.
- Parameters
-
[in] | chip_id | Chip ID to communicate |
[out] | cfg | cdce906_cfg struct with the current configuration |
- Returns
- 0 if successful, non zero if there was an I2C error
◆ cdce906_write_cfg()
int cdce906_write_cfg |
( |
uint8_t | chip_id, |
|
|
const cdce906_cfg * | cfg ) |
Write the CDCE906 configuration.
- Parameters
-
[in] | chip_id | Chip ID to communicate |
[in] | cfg | cdce906_cfg struct containing the desired configuration |
- Returns
- 0 if successful, non zero if there was an I2C error
◆ cdce906_write_eeprom()
int cdce906_write_eeprom |
( |
uint8_t | chip_id | ) |
|
Save the current CDCE906 configuration to internal eeprom.
- Parameters
-
[in] | chip_id | Chip ID to communicate |
- Returns
- 0 if successful, non zero if there was an I2C error