hbridge4 2.0.0.0
|
Functions | |
void | hbridge4_cfg_setup (hbridge4_cfg_t *cfg) |
Config Object Initialization function. | |
HBRIDGE4_RETVAL | hbridge4_init (hbridge4_t *ctx, hbridge4_cfg_t *cfg) |
Initialization function. | |
void | hbridge4_enable (hbridge4_t *ctx, uint8_t state) |
Enable the device function. | |
void | hbridge4_set_in1 (hbridge4_t *ctx, uint8_t state) |
Set IN1 function. | |
void | hbridge4_set_in2 (hbridge4_t *ctx, uint8_t state) |
Set IN2 function. | |
void | hbridge4_set_in3 (hbridge4_t *ctx, uint8_t state) |
Set IN3 function. | |
void | hbridge4_set_in4 (hbridge4_t *ctx, uint8_t state) |
Set IN4 function. | |
void | hbridge4_motor_a_standby (hbridge4_t *ctx) |
Motor A standby function. | |
void | hbridge4_motor_acw (hbridge4_t *ctx) |
Motor A clockwise motion function. | |
void | hbridge4_motor_accw (hbridge4_t *ctx) |
Motor A counter-clockwise motion function. | |
void | hbridge4_motor_a_brake (hbridge4_t *ctx) |
Motor A Brake function. | |
void | hbridge4_motor_b_standby (hbridge4_t *ctx) |
Motor B standby function. | |
void | hbridge4_motor_bcw (hbridge4_t *ctx) |
Motor B clockwise motion function. | |
void | hbridge4_motor_bccw (hbridge4_t *ctx) |
Motor B counter-clockwise motion function. | |
void | hbridge4_motor_b_brake (hbridge4_t *ctx) |
Motor B Brake function. | |
void hbridge4_cfg_setup | ( | hbridge4_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void hbridge4_enable | ( | hbridge4_t * | ctx, |
uint8_t | state ) |
Enable the device function.
ctx | Click object. |
state | 0 - Device disabled / 1 - Device enabled |
@description Function is used to enable or disable the device.
HBRIDGE4_RETVAL hbridge4_init | ( | hbridge4_t * | ctx, |
hbridge4_cfg_t * | cfg ) |
Initialization function.
hbridge4 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void hbridge4_motor_a_brake | ( | hbridge4_t * | ctx | ) |
Motor A Brake function.
ctx | Click object. |
@description Function is used to brake motor A to a halt.
void hbridge4_motor_a_standby | ( | hbridge4_t * | ctx | ) |
Motor A standby function.
@description Function is used to put motor A into standby.
void hbridge4_motor_accw | ( | hbridge4_t * | ctx | ) |
Motor A counter-clockwise motion function.
ctx | Click object. |
@description Function is used to put motor A into counter-clockwise motion.
void hbridge4_motor_acw | ( | hbridge4_t * | ctx | ) |
Motor A clockwise motion function.
ctx | Click object. |
@description Function is used to put motor A into clockwise motion.
void hbridge4_motor_b_brake | ( | hbridge4_t * | ctx | ) |
Motor B Brake function.
ctx | Click object. |
@description Function is used to brake motor B to a halt.
void hbridge4_motor_b_standby | ( | hbridge4_t * | ctx | ) |
Motor B standby function.
ctx | Click object. |
@description Function is used to put motor B into standby.
void hbridge4_motor_bccw | ( | hbridge4_t * | ctx | ) |
Motor B counter-clockwise motion function.
ctx | Click object. |
@description Function is used to put motor B into counter-clockwise motion.
void hbridge4_motor_bcw | ( | hbridge4_t * | ctx | ) |
Motor B clockwise motion function.
ctx | Click object. |
@description Function is used to put motor B into clockwise motion.
void hbridge4_set_in1 | ( | hbridge4_t * | ctx, |
uint8_t | state ) |
Set IN1 function.
ctx | Click object. |
state | 0 - IN1 pin cleared / 1 - IN1 pin set |
@description Function is used to set or clear IN1 pin.
void hbridge4_set_in2 | ( | hbridge4_t * | ctx, |
uint8_t | state ) |
Set IN2 function.
ctx | Click object. |
state | 0 - IN2 pin cleared / 1 - IN2 pin set |
@description Function is used to set or clear IN2 pin.
void hbridge4_set_in3 | ( | hbridge4_t * | ctx, |
uint8_t | state ) |
Set IN3 function.
ctx | Click object. |
state | 0 - IN3 pin cleared / 1 - IN3 pin set |
@description Function is used to set or clear IN3 pin.
void hbridge4_set_in4 | ( | hbridge4_t * | ctx, |
uint8_t | state ) |
Set IN4 function.
ctx | Click object. |
state | 0 - IN4 pin cleared / 1 - IN4 pin set |
@description Function is used to set or clear IN4 pin.