mcp16331 2.0.0.0
|
Functions | |
void | mcp16331_cfg_setup (mcp16331_cfg_t *cfg) |
Config Object Initialization function. | |
MCP16331_RETVAL | mcp16331_init (mcp16331_t *ctx, mcp16331_cfg_t *cfg) |
Initialization function. | |
void | mcp16331_generic_transfer (mcp16331_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | mcp16331_set_vout (mcp16331_t *ctx, uint16_t millivolts_vout) |
mcp16331 set vout | |
void mcp16331_cfg_setup | ( | mcp16331_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void mcp16331_generic_transfer | ( | mcp16331_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len ) |
Generic transfer function.
ctx | Click object. |
wr_buf | Write data buffer |
wr_len | Number of byte in write data buffer |
rd_buf | Read data buffer |
rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
MCP16331_RETVAL mcp16331_init | ( | mcp16331_t * | ctx, |
mcp16331_cfg_t * | cfg ) |
Initialization function.
mcp16331 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void mcp16331_set_vout | ( | mcp16331_t * | ctx, |
uint16_t | millivolts_vout ) |
mcp16331 set vout
ctx | Click object. |
millivolts_vout | Output voltage in millivolts |
@description This function sets the output voltage to selected value.