hbridge2 2.0.0.0
|
Functions | |
void | hbridge2_cfg_setup (hbridge2_cfg_t *cfg) |
Config Object Initialization function. | |
HBRIDGE2_RETVAL | hbridge2_init (hbridge2_t *ctx, hbridge2_cfg_t *cfg) |
Initialization function. | |
uint8_t | hbridge2_set_output (hbridge2_t *ctx, uint8_t out_state) |
Output Set function. | |
void | hbridge2_enable (hbridge2_t *ctx, uint8_t state) |
Enable function. | |
void | hbridge2_set_gout (hbridge2_t *ctx, uint8_t state) |
GOUT Set function. | |
void hbridge2_cfg_setup | ( | hbridge2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void hbridge2_enable | ( | hbridge2_t * | ctx, |
uint8_t | state ) |
Enable function.
ctx | Click object. |
state | 0 - Disable, 1 - Enable. |
@description Function puts the device in enable or disable state.
HBRIDGE2_RETVAL hbridge2_init | ( | hbridge2_t * | ctx, |
hbridge2_cfg_t * | cfg ) |
Initialization function.
hbridge2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void hbridge2_set_gout | ( | hbridge2_t * | ctx, |
uint8_t | state ) |
GOUT Set function.
ctx | Click object. |
state | 0 - GOUT is high, 1 - GOUT is low |
@description Function controls the state of the GOUT pin (MOSFET GAIN).
uint8_t hbridge2_set_output | ( | hbridge2_t * | ctx, |
uint8_t | out_state ) |
Output Set function.
ctx | Click object. |
out_state | Determines the state of OUT1 and OUT2. |
@description Function puts outputs (OUT1 (M1) and OUT2 (M2) ) to desired state.