dac3 2.0.0.0
|
Functions | |
void | dac3_cfg_setup (dac3_cfg_t *cfg) |
Config Object Initialization function. | |
DAC3_RETVAL | dac3_init (dac3_t *ctx, dac3_cfg_t *cfg) |
Initialization function. | |
void | dac3_set_out_voltage (dac3_t *ctx, uint16_t output) |
Set output voltage function. | |
void | dac3_send_command (dac3_t *ctx, uint8_t cmd) |
Send command function. | |
void | dac3_write_all_mem (dac3_t *ctx, uint16_t value) |
Send command function. | |
void dac3_cfg_setup | ( | dac3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
DAC3_RETVAL dac3_init | ( | dac3_t * | ctx, |
dac3_cfg_t * | cfg ) |
Initialization function.
dac3 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void dac3_send_command | ( | dac3_t * | ctx, |
uint8_t | cmd ) |
Send command function.
ctx | Click object. |
cmd | SPI command. |
@description This function sends a command to the click module using SPI communication.
void dac3_set_out_voltage | ( | dac3_t * | ctx, |
uint16_t | output ) |
Set output voltage function.
ctx | Click object. |
output | Output voltage. |
@description This function sets the output voltage on the click module terminal.
void dac3_write_all_mem | ( | dac3_t * | ctx, |
uint16_t | value ) |
Send command function.
ctx | Click object. |
cmd | SPI command. |
@description This function configures the click module.