ipd2015 2.1.0.0
|
API for configuring and manipulating IPD 2015 Click driver. More...
Modules | |
IPD 2015 MikroBUS Map | |
MikroBUS pin mapping of IPD 2015 Click driver. | |
Ipd2015_set | |
Functions | |
void | ipd2015_cfg_setup (ipd2015_cfg_t *cfg) |
IPD 2015 configuration object setup function. More... | |
err_t | ipd2015_init (ipd2015_t *ctx, ipd2015_cfg_t *cfg) |
IPD 2015 initialization function. More... | |
void | ipd2015_all_pins_set (ipd2015_t *ctx) |
IPD 2015 pin setting function. More... | |
void | ipd2015_all_pins_clear (ipd2015_t *ctx) |
IPD 2015 pin clearing function. More... | |
err_t | ipd2015_set_out_level (ipd2015_t *ctx, uint8_t out_sel, uint8_t state) |
IPD 2015 set output level function. More... | |
uint8_t | ipd2015_get_out_state (ipd2015_t *ctx) |
IPD 2015 get output level function. More... | |
API for configuring and manipulating IPD 2015 Click driver.
void ipd2015_all_pins_clear | ( | ipd2015_t * | ctx | ) |
IPD 2015 pin clearing function.
This function is usedd to set all pins to the low level of IPD 2015 click board.
[in] | ctx | : Click context object. See ipd2015_t object definition for detailed explanation. |
void ipd2015_all_pins_set | ( | ipd2015_t * | ctx | ) |
IPD 2015 pin setting function.
This function is used to set all pins to the high level of IPD 2015 click board.
[in] | ctx | : Click context object. See ipd2015_t object definition for detailed explanation. |
void ipd2015_cfg_setup | ( | ipd2015_cfg_t * | cfg | ) |
IPD 2015 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See ipd2015_cfg_t object definition for detailed explanation. |
uint8_t ipd2015_get_out_state | ( | ipd2015_t * | ctx | ) |
IPD 2015 get output level function.
This function is used to get output level state.
[out] | ctx | : Click context object. See ipd2015_t object definition for detailed explanation. |
err_t ipd2015_init | ( | ipd2015_t * | ctx, |
ipd2015_cfg_t * | cfg | ||
) |
IPD 2015 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See ipd2015_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See ipd2015_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t ipd2015_set_out_level | ( | ipd2015_t * | ctx, |
uint8_t | out_sel, | ||
uint8_t | state | ||
) |
IPD 2015 set output level function.
This function is used to set output level state.
[out] | ctx | : Click context object. See ipd2015_t object definition for detailed explanation. |
[in] | out_sel | : Selected output channel. |
[in] | state | : State of the selected output channel. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.