stspin250 2.0.0.0
|
Functions | |
void | stspin250_cfg_setup (stspin250_cfg_t *cfg) |
Config Object Initialization function. | |
STSPIN250_RETVAL | stspin250_init (stspin250_t *ctx, stspin250_cfg_t *cfg) |
Initialization function. | |
void | stspin250_default_cfg (stspin250_t *ctx) |
Click Default Configuration function. | |
void | stspin250_set_duty_cycle (stspin250_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | stspin250_pwm_stop (stspin250_t *ctx) |
Stop PWM module. | |
void | stspin250_pwm_start (stspin250_t *ctx) |
Start PWM module. | |
void | stspin250_enable (stspin250_t *ctx, uint8_t state) |
Enable pin function. | |
void | stspin250_set_ph (stspin250_t *ctx, uint8_t state) |
Dir ctrl pin function. | |
void | stspin250_reset (stspin250_t *ctx) |
Reset pin function. | |
uint8_t | stspin250_get_fault (stspin250_t *ctx) |
Fault get function. | |
void stspin250_cfg_setup | ( | stspin250_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void stspin250_default_cfg | ( | stspin250_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Stspin250 click.
void stspin250_enable | ( | stspin250_t * | ctx, |
uint8_t | state ) |
Enable pin function.
ctx | Click object. |
state | Desired pin state. |
@description This function regulates enable pin state.
uint8_t stspin250_get_fault | ( | stspin250_t * | ctx | ) |
Fault get function.
ctx | Click object. |
state | Desired pin state. |
@description This function gets fault state from the flt pin.
STSPIN250_RETVAL stspin250_init | ( | stspin250_t * | ctx, |
stspin250_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 stspin250_pwm_start | ( | stspin250_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
@description This function starts PWM module.
void stspin250_pwm_stop | ( | stspin250_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
@description This function stops PWM module.
void stspin250_reset | ( | stspin250_t * | ctx | ) |
Reset pin function.
ctx | Click object. |
state | Desired pin state. |
@description This function regulates reset pin state.
void stspin250_set_duty_cycle | ( | stspin250_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.
void stspin250_set_ph | ( | stspin250_t * | ctx, |
uint8_t | state ) |
Dir ctrl pin function.
ctx | Click object. |
state | Desired pin state. |
@description This function regulates Direction control pin state. It controls direction of the current.