brushless16 2.0.0.0
|
API for configuring and manipulating Brushless 16 Click driver. More...
Functions | |
void | brushless16_cfg_setup (brushless16_cfg_t *cfg) |
Brushless 16 configuration object setup function. | |
err_t | brushless16_init (brushless16_t *ctx, brushless16_cfg_t *cfg) |
Brushless 16 initialization function. | |
void | brushless16_set_en (brushless16_t *ctx, uint8_t state) |
Set en pin state. | |
uint8_t | brushless16_get_rd (brushless16_t *ctx) |
Get rd pin state. | |
uint8_t | brushless16_get_fg (brushless16_t *ctx) |
Get fg pin state. | |
API for configuring and manipulating Brushless 16 Click driver.
void brushless16_cfg_setup | ( | brushless16_cfg_t * | cfg | ) |
Brushless 16 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See brushless16_cfg_t object definition for detailed explanation. |
uint8_t brushless16_get_fg | ( | brushless16_t * | ctx | ) |
Get fg pin state.
Read logic state of FG pin.
[in] | ctx | : Click context object. See brushless16_t object definition for detailed explanation. |
0
- Low pin state, 1
- High pin state. uint8_t brushless16_get_rd | ( | brushless16_t * | ctx | ) |
Get rd pin state.
Read logic state of RD pin
[in] | ctx | : Click context object. See brushless16_t object definition for detailed explanation. |
0
- Low pin state, 1
- High pin state. err_t brushless16_init | ( | brushless16_t * | ctx, |
brushless16_cfg_t * | cfg ) |
Brushless 16 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See brushless16_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See brushless16_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.void brushless16_set_en | ( | brushless16_t * | ctx, |
uint8_t | state ) |
Set en pin state.
This function sets the target pin on the high level of Brushless 16 click board.
[in] | ctx | : Click context object. See brushless16_t object definition for detailed explanation. |
[in] | state | : Pin state. |