dcmotor21
2.0.0.0
|
API for configuring and manipulating DC Motor 21 Click driver. More...
Modules | |
DC Motor 21 OUT Settings | |
Settings for OUT of DC Motor 21 Click driver. | |
DC Motor 21 MikroBUS Map | |
MikroBUS pin mapping of DC Motor 21 Click driver. | |
Functions | |
void | dcmotor21_cfg_setup (dcmotor21_cfg_t *cfg) |
DC Motor 21 configuration object setup function. More... | |
err_t | dcmotor21_init (dcmotor21_t *ctx, dcmotor21_cfg_t *cfg) |
DC Motor 21 initialization function. More... | |
void | dcmotor21_default_cfg (dcmotor21_t *ctx) |
DC Motor 21 default configuration function. More... | |
void | dcmotor21_set_out_1 (dcmotor21_t *ctx, uint8_t state) |
DC Motor 21 set out 1 function. More... | |
void | dcmotor21_set_out_2 (dcmotor21_t *ctx, uint8_t state) |
DC Motor 21 set out 2 function. More... | |
API for configuring and manipulating DC Motor 21 Click driver.
void dcmotor21_cfg_setup | ( | dcmotor21_cfg_t * | cfg | ) |
DC Motor 21 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See dcmotor21_cfg_t object definition for detailed explanation. |
void dcmotor21_default_cfg | ( | dcmotor21_t * | ctx | ) |
DC Motor 21 default configuration function.
This function executes a default configuration of DC Motor 21 click board.
[in] | ctx | : Click context object. See dcmotor21_t object definition for detailed explanation. |
err_t dcmotor21_init | ( | dcmotor21_t * | ctx, |
dcmotor21_cfg_t * | cfg | ||
) |
DC Motor 21 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See dcmotor21_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See dcmotor21_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.void dcmotor21_set_out_1 | ( | dcmotor21_t * | ctx, |
uint8_t | state | ||
) |
DC Motor 21 set out 1 function.
This function sets the state of output 1.
[in] | ctx | : Click context object. See dcmotor21_t object definition for detailed explanation. |
[in] | state | :
|
void dcmotor21_set_out_2 | ( | dcmotor21_t * | ctx, |
uint8_t | state | ||
) |
DC Motor 21 set out 2 function.
This function sets the state of output 2.
[in] | ctx | : Click context object. See dcmotor21_t object definition for detailed explanation. |
[in] | state | :
|