opto5 2.0.0.0
|
API for configuring and manipulating Opto 5 Click driver. More...
Topics | |
Opto 5 MikroBUS Map | |
MikroBUS pin mapping of Opto 5 Click driver. | |
Functions | |
void | opto5_cfg_setup (opto5_cfg_t *cfg) |
Opto 5 configuration object setup function. | |
err_t | opto5_init (opto5_t *ctx, opto5_cfg_t *cfg) |
Opto 5 initialization function. | |
void | opto5_default_cfg (opto5_t *ctx) |
Opto 5 default configuration function. | |
void | opto5_pin_set (opto5_t *ctx) |
Opto 5 pin setting function. | |
void | opto5_pin_clear (opto5_t *ctx) |
Opto 5 pin clearing function. | |
void | opto5_pin_toggle (opto5_t *ctx) |
Opto 5 pin toggling function. | |
API for configuring and manipulating Opto 5 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void opto5_cfg_setup | ( | opto5_cfg_t * | cfg | ) |
Opto 5 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See opto5_cfg_t object definition for detailed explanation. |
void opto5_default_cfg | ( | opto5_t * | ctx | ) |
Opto 5 default configuration function.
This function executes a default configuration of Opto 5 click board.
[in] | ctx | : Click context object. See opto5_t object definition for detailed explanation. |
See #err_t definition for detailed explanation.
err_t opto5_init | ( | opto5_t * | ctx, |
opto5_cfg_t * | cfg ) |
Opto 5 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See opto5_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See opto5_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.void opto5_pin_clear | ( | opto5_t * | ctx | ) |
Opto 5 pin clearing function.
This function clears the target pin on the low level of Opto 5 click board.
[in] | ctx | : Click context object. See opto5_t object definition for detailed explanation. |
void opto5_pin_set | ( | opto5_t * | ctx | ) |
Opto 5 pin setting function.
This function sets the target pin on the high level of Opto 5 click board.
[in] | ctx | : Click context object. See opto5_t object definition for detailed explanation. |