no-OS
|
Implementation of AD5110 Driver for Microblaze processor. More...
Functions | |
int8_t | ad5110_init (struct ad5110_dev **device, struct ad5110_init_param init_param) |
Initializes the communication with the device. More... | |
int32_t | ad5110_remove (struct ad5110_dev *dev) |
Free the resources allocated by ad5110_init(). More... | |
void | ad5110_write_rdac (struct ad5110_dev *dev, uint8_t rdac_value) |
Write the content of serial register data to RDAC. More... | |
uint8_t | ad5110_read_rdac (struct ad5110_dev *dev) |
Read the content of RDAC register. More... | |
void | ad5110_write_rdac_eeprom (struct ad5110_dev *dev) |
Write the content of RDAC register to EEPROM. More... | |
uint8_t | ad5110_read_wiper (struct ad5110_dev *dev) |
Read wiper position from EEPROM. More... | |
uint8_t | ad5110_read_res_tolerance (struct ad5110_dev *dev) |
Read resistor tolerance from EEPROM. More... | |
void | ad5110_reset (struct ad5110_dev *dev) |
Software reset; makes a refresh of RDAC register with EEPROM. More... | |
void | ad5110_shut_down (struct ad5110_dev *dev, uint8_t value) |
Software shutdown. More... | |
Implementation of AD5110 Driver for Microblaze processor.
Copyright 2013(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
int8_t ad5110_init | ( | struct ad5110_dev ** | device, |
struct ad5110_init_param | init_param | ||
) |
Initializes the communication with the device.
device | - The device structure. |
init_param | - The structure that contains the device initial parameters. |
uint8_t ad5110_read_rdac | ( | struct ad5110_dev * | dev | ) |
Read the content of RDAC register.
dev | - The device structure. |
uint8_t ad5110_read_res_tolerance | ( | struct ad5110_dev * | dev | ) |
Read resistor tolerance from EEPROM.
dev | - The device structure. |
uint8_t ad5110_read_wiper | ( | struct ad5110_dev * | dev | ) |
Read wiper position from EEPROM.
dev | - The device structure. |
int32_t ad5110_remove | ( | struct ad5110_dev * | dev | ) |
Free the resources allocated by ad5110_init().
dev | - The device structure. |
void ad5110_reset | ( | struct ad5110_dev * | dev | ) |
Software reset; makes a refresh of RDAC register with EEPROM.
dev | - The device structure. |
void ad5110_shut_down | ( | struct ad5110_dev * | dev, |
uint8_t | value | ||
) |
Software shutdown.
dev | - The device structure. |
value | - the value written to shut down register. Example: ShutDownOff - the device is on. ShutDownOn - the device is shut down. |
void ad5110_write_rdac | ( | struct ad5110_dev * | dev, |
uint8_t | rdac_value | ||
) |
Write the content of serial register data to RDAC.
dev | - The device structure. |
rdac_value | - Value of the serial register. |
void ad5110_write_rdac_eeprom | ( | struct ad5110_dev * | dev | ) |
Write the content of RDAC register to EEPROM.
dev | - The device structure. |