dac5 2.0.0.0
|
Functions | |
void | dac5_cfg_setup (dac5_cfg_t *cfg) |
Config Object Initialization function. | |
DAC5_RETVAL | dac5_init (dac5_t *ctx, dac5_cfg_t *cfg) |
Initialization function. | |
void | dac5_generic_write (dac5_t *ctx, uint8_t reg, uint16_t data_buf) |
Generic write function. | |
uint16_t | dac5_generic_read (dac5_t *ctx, uint8_t reg) |
Generic read function. | |
void | dac5_config (dac5_t *ctx, uint16_t config_data) |
Function for configurating click. | |
uint16_t | dac5_get_device_id (dac5_t *ctx) |
Function for reading device id. | |
void | dac5_software_reset (dac5_t *ctx) |
Function for software reset. | |
void | dac5_clear (dac5_t *ctx) |
Function for clearing sent data. | |
uint8_t | dac5_set_ldac_pin (dac5_t *ctx, uint8_t status) |
Function for setting LDAC pin status. | |
uint8_t | dac5_send_data (dac5_t *ctx, uint8_t data_reg, uint16_t data_buf) |
Function for sending data to one output. | |
void dac5_cfg_setup | ( | dac5_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void dac5_clear | ( | dac5_t * | ctx | ) |
Function for clearing sent data.
ctx | Click object. |
@description This functions clears output V
void dac5_config | ( | dac5_t * | ctx, |
uint16_t | config_data ) |
Function for configurating click.
ctx | Click object. |
config_data | Configuration data |
@description This function sends configures device
uint16_t dac5_generic_read | ( | dac5_t * | ctx, |
uint8_t | reg ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
@description This function reads data from the desired register.
void dac5_generic_write | ( | dac5_t * | ctx, |
uint8_t | reg, | ||
uint16_t | data_buf ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
@description This function writes data to the desired register.
uint16_t dac5_get_device_id | ( | dac5_t * | ctx | ) |
Function for reading device id.
ctx | Click object. |
@description This function gets device id
DAC5_RETVAL dac5_init | ( | dac5_t * | ctx, |
dac5_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t dac5_send_data | ( | dac5_t * | ctx, |
uint8_t | data_reg, | ||
uint16_t | data_buf ) |
Function for sending data to one output.
ctx | Click object. |
data_reg | Registar of sending target |
data_buf | Data to be sent |
@description This function sends data for changing V on output
uint8_t dac5_set_ldac_pin | ( | dac5_t * | ctx, |
uint8_t | status ) |
Function for setting LDAC pin status.
ctx | Click object. |
status | Should send either DAC5_SYNCHRONOUS or DAC5_ASYNCHRONOUS |
@description This function sets state of ldac pin
void dac5_software_reset | ( | dac5_t * | ctx | ) |
Function for software reset.
ctx | Click object. |
@description This function resets device