digipot11 2.1.0.0
|
API for configuring and manipulating DIGI POT 11 Click driver. More...
Topics | |
DIGI POT 11 MikroBUS Map | |
MikroBUS pin mapping of DIGI POT 11 Click driver. | |
Digipot11_set | |
Functions | |
void | digipot11_cfg_setup (digipot11_cfg_t *cfg) |
DIGI POT 11 configuration object setup function. | |
err_t | digipot11_init (digipot11_t *ctx, digipot11_cfg_t *cfg) |
DIGI POT 11 initialization function. | |
err_t | digipot11_set_u1_wiper (digipot11_t *ctx, uint8_t wiper_sel, uint8_t data_in) |
DIGI POT 11 set u1 wiper function. | |
err_t | digipot11_set_u2_wiper (digipot11_t *ctx, uint8_t wiper_sel, uint8_t data_in) |
DIGI POT 11 set u2 wiper function. | |
API for configuring and manipulating DIGI POT 11 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void digipot11_cfg_setup | ( | digipot11_cfg_t * | cfg | ) |
DIGI POT 11 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See digipot11_cfg_t object definition for detailed explanation. |
err_t digipot11_init | ( | digipot11_t * | ctx, |
digipot11_cfg_t * | cfg ) |
DIGI POT 11 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See digipot11_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See digipot11_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t digipot11_set_u1_wiper | ( | digipot11_t * | ctx, |
uint8_t | wiper_sel, | ||
uint8_t | data_in ) |
DIGI POT 11 set u1 wiper function.
This function sets the position of the selected wiper of U1 device by using I2C serial interface.
[in] | ctx | : Click context object. See digipot11_t object definition for detailed explanation. |
[in] | wiper_sel | : Wiper selector:
|
[in] | data_in | : Wiper position to be written. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t digipot11_set_u2_wiper | ( | digipot11_t * | ctx, |
uint8_t | wiper_sel, | ||
uint8_t | data_in ) |
DIGI POT 11 set u2 wiper function.
This function sets the position of the selected wiper of U2 device by using I2C serial interface.
[in] | ctx | : Click context object. See digipot11_t object definition for detailed explanation. |
[in] | wiper_sel | : Wiper selector:
|
[in] | data_in | : Wiper position to be written. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.