![]() |
no-OS
|
Macros | |
| #define | MSB_BYTE_MASK 0xFF00 |
| #define | LSB_BYTE_MASK 0x00FF |
| #define | ONEBYTE_OFFSET 0x8 |
Functions | |
| int8_t | ad525x_init (struct ad525x_dev **device, struct ad525x_init_param init_param) |
| Initialize SPI and Initial Values for AD5172 Board. | |
| int32_t | ad525x_remove (struct ad525x_dev *dev) |
| Free the resources allocated by ad525x_init(). | |
| uint16_t | ad525x_read_mem (struct ad525x_dev *dev, uint8_t address) |
| Read data from the EEMEM. | |
| void | ad525x_write_mem (struct ad525x_dev *dev, uint8_t address, uint16_t data) |
| Write data to EEMEM. | |
| uint16_t | ad525x_read_rdac (struct ad525x_dev *dev, uint8_t address) |
| Read data from the RDAC register. | |
| void | ad525x_write_rdac (struct ad525x_dev *dev, uint8_t address, uint16_t data) |
| Write data to RDAC register. | |
| void | ad525x_write_command (struct ad525x_dev *dev, uint8_t command, uint8_t address) |
| Write quick commands to the device. | |
| #define LSB_BYTE_MASK 0x00FF |
| #define MSB_BYTE_MASK 0xFF00 |
| #define ONEBYTE_OFFSET 0x8 |
| int8_t ad525x_init | ( | struct ad525x_dev ** | device, |
| struct ad525x_init_param | init_param ) |
Initialize SPI and Initial Values for AD5172 Board.
| device | - The device structure. |
| init_param | - The structure that contains the device initial parameters. |
| uint16_t ad525x_read_mem | ( | struct ad525x_dev * | dev, |
| uint8_t | address ) |
Read data from the EEMEM.
| dev | - The device structure. |
| address | - desired address of the EEMEM memory |
| uint16_t ad525x_read_rdac | ( | struct ad525x_dev * | dev, |
| uint8_t | address ) |
Read data from the RDAC register.
| dev | - The device structure. |
| address | - desired address of the RDAC registers |
| int32_t ad525x_remove | ( | struct ad525x_dev * | dev | ) |
Free the resources allocated by ad525x_init().
| dev | - The device structure. |
| void ad525x_write_command | ( | struct ad525x_dev * | dev, |
| uint8_t | command, | ||
| uint8_t | address ) |
Write quick commands to the device.
| dev | - The device structure. |
| command | - desired command, the functionality of a command it may vary at diffrent devices |
| address | - Address to be written |
| void ad525x_write_mem | ( | struct ad525x_dev * | dev, |
| uint8_t | address, | ||
| uint16_t | data ) |
Write data to EEMEM.
| dev | - The device structure. |
| address | - desired address of the EEMEM memory |
| data | - the data which will be written to the memory |
| void ad525x_write_rdac | ( | struct ad525x_dev * | dev, |
| uint8_t | address, | ||
| uint16_t | data ) |
Write data to RDAC register.
| dev | - The device structure. |
| address | - desired address of the RDAC register |
| data | - the data which will be written to the RDAC register |