expand13
2.0.0.0
|
API for configuring and manipulating Expand 13 Click driver. More...
Modules | |
Expand 13 Settings | |
Settings of Expand 13 Click driver. | |
Expand 13 MikroBUS Map | |
MikroBUS pin mapping of Expand 13 Click driver. | |
Functions | |
void | expand13_cfg_setup (expand13_cfg_t *cfg) |
Expand 13 configuration object setup function. More... | |
err_t | expand13_init (expand13_t *ctx, expand13_cfg_t *cfg) |
Expand 13 initialization function. More... | |
void | expand13_enable_device (expand13_t *ctx) |
Expand 13 enable device function. More... | |
void | expand13_disable_device (expand13_t *ctx) |
Expand 13 disable device function. More... | |
uint8_t | expand13_get_int_pin (expand13_t *ctx) |
Expand 13 get int pin function. More... | |
err_t | expand13_write_all_ports (expand13_t *ctx, uint8_t *ports) |
Expand 13 write all ports function. More... | |
err_t | expand13_read_all_ports (expand13_t *ctx, uint8_t *ports) |
Expand 13 read all ports function. More... | |
err_t | expand13_set_port_value (expand13_t *ctx, uint8_t port, uint8_t clr_mask, uint8_t set_mask) |
Expand 13 set port value function. More... | |
err_t | expand13_read_port_value (expand13_t *ctx, uint8_t port, uint8_t *data_out) |
Expand 13 read port value function. More... | |
API for configuring and manipulating Expand 13 Click driver.
void expand13_cfg_setup | ( | expand13_cfg_t * | cfg | ) |
Expand 13 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See expand13_cfg_t object definition for detailed explanation. |
void expand13_disable_device | ( | expand13_t * | ctx | ) |
Expand 13 disable device function.
This function disables the device by setting the RST pin to low logic state.
[in] | ctx | : Click context object. See expand13_t object definition for detailed explanation. |
void expand13_enable_device | ( | expand13_t * | ctx | ) |
Expand 13 enable device function.
This function enables the device by setting the RST pin to high logic state.
[in] | ctx | : Click context object. See expand13_t object definition for detailed explanation. |
uint8_t expand13_get_int_pin | ( | expand13_t * | ctx | ) |
Expand 13 get int pin function.
This function returns the INT pin logic state.
[in] | ctx | : Click context object. See expand13_t object definition for detailed explanation. |
err_t expand13_init | ( | expand13_t * | ctx, |
expand13_cfg_t * | cfg | ||
) |
Expand 13 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See expand13_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See expand13_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t expand13_read_all_ports | ( | expand13_t * | ctx, |
uint8_t * | ports | ||
) |
Expand 13 read all ports function.
This function reads the state of all 6 ports.
[in] | ctx | : Click context object. See expand13_t object definition for detailed explanation. |
[out] | ports | : Ports array of 6 bytes. |
0
- Success, -1
- Error.err_t expand13_read_port_value | ( | expand13_t * | ctx, |
uint8_t | port, | ||
uint8_t * | data_out | ||
) |
Expand 13 read port value function.
This function reads the value of the selected port.
[in] | ctx | : Click context object. See expand13_t object definition for detailed explanation. |
[in] | port | :
|
[out] | data_out | : Port value. |
0
- Success, -1
- Error.err_t expand13_set_port_value | ( | expand13_t * | ctx, |
uint8_t | port, | ||
uint8_t | clr_mask, | ||
uint8_t | set_mask | ||
) |
Expand 13 set port value function.
This function sets the value of the selected port.
[in] | ctx | : Click context object. See expand13_t object definition for detailed explanation. |
[in] | port | :
|
[in] | clr_mask | : Port clear mask. |
[in] | set_mask | : Port set mask. |
0
- Success, -1
- Error.err_t expand13_write_all_ports | ( | expand13_t * | ctx, |
uint8_t * | ports | ||
) |
Expand 13 write all ports function.
This function writes a desired data to all 6 ports.
[in] | ctx | : Click context object. See expand13_t object definition for detailed explanation. |
[in] | ports | : Ports array of 6 bytes. |
0
- Success, -1
- Error.