hbridge3 2.0.0.0
|
Functions | |
void | hbridge3_cfg_setup (hbridge3_cfg_t *cfg) |
Config Object Initialization function. | |
HBRIDGE3_RETVAL | hbridge3_init (hbridge3_t *ctx, hbridge3_cfg_t *cfg) |
Initialization function. | |
void | hbridge3_default_cfg (hbridge3_t *ctx, float duty_cycle) |
Click Default Configuration function. | |
void | hbridge3_set_duty_cycle (hbridge3_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | hbridge3_pwm_stop (hbridge3_t *ctx) |
Stop PWM module. | |
void | hbridge3_pwm_start (hbridge3_t *ctx) |
Start PWM module. | |
void | hbridge3_dir_set (hbridge3_t *ctx, uint8_t pin_state) |
Setting AN pin state. | |
void | hbridge3_dis_set (hbridge3_t *ctx, uint8_t pin_state) |
Setting RST pin state. | |
void | hbridge3_cs_set (hbridge3_t *ctx, uint8_t pin_state) |
Setting CS pin state. | |
uint8_t | hbridge3_spi (hbridge3_t *ctx, uint8_t spi_command) |
Sending SPI command. | |
void hbridge3_cfg_setup | ( | hbridge3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void hbridge3_cs_set | ( | hbridge3_t * | ctx, |
uint8_t | pin_state ) |
Setting CS pin state.
ctx | Click object. |
pin_state | State of CS pin to be set (0 for LOW state and 1 for HIGH state) |
@description This function sets CS pin state
void hbridge3_default_cfg | ( | hbridge3_t * | ctx, |
float | duty_cycle ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for HBridge3 click.
void hbridge3_dir_set | ( | hbridge3_t * | ctx, |
uint8_t | pin_state ) |
Setting AN pin state.
ctx | Click object. |
pin_state | State of AN pin to be set (0 for LOW state and 1 for HIGH state) |
@description This function sets AN pin state
void hbridge3_dis_set | ( | hbridge3_t * | ctx, |
uint8_t | pin_state ) |
Setting RST pin state.
ctx | Click object. |
pin_state | State of RST pin to be set (0 for LOW state and 1 for HIGH state) |
@description This function sets RST pin state
HBRIDGE3_RETVAL hbridge3_init | ( | hbridge3_t * | ctx, |
hbridge3_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 hbridge3_pwm_start | ( | hbridge3_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
@description This function starts PWM module.
void hbridge3_pwm_stop | ( | hbridge3_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
@description This function stops PWM module.
void hbridge3_set_duty_cycle | ( | hbridge3_t * | ctx, |
float | duty_cycle ) |
Generic sets PWM duty cycle.
ctx | Click object. |
duty_cycle | Duty cycle. |
@description This function sets the PWM duty cycle.
uint8_t hbridge3_spi | ( | hbridge3_t * | ctx, |
uint8_t | spi_command ) |
Sending SPI command.
ctx | Click object. |
spi_command | - SPI command |
@description This function sends SPI command and receives response to command sent