hbridge7 2.0.0.0
|
Functions | |
void | hbridge7_cfg_setup (hbridge7_cfg_t *cfg) |
Config Object Initialization function. | |
HBRIDGE7_RETVAL | hbridge7_init (hbridge7_t *ctx, hbridge7_cfg_t *cfg) |
Initialization function. | |
void | hbridge7_motor_control (hbridge7_t *ctx, uint8_t ctrl) |
Set motor control. | |
uint8_t | hbridge7_get_fault_state (hbridge7_t *ctx) |
Get Fault pin state. | |
void hbridge7_cfg_setup | ( | hbridge7_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t hbridge7_get_fault_state | ( | hbridge7_t * | ctx | ) |
Get Fault pin state.
ctx | Click object. |
@description This function gets fault pin state.
HBRIDGE7_RETVAL hbridge7_init | ( | hbridge7_t * | ctx, |
hbridge7_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void hbridge7_motor_control | ( | hbridge7_t * | ctx, |
uint8_t | ctrl ) |
Set motor control.
ctx | Click object. |
ctrl | ( Sleep, Brake, Reverse or Forward ) |
@description This function sets motor control.