dcmotor14 2.0.0.0
|
Functions | |
void | dcmotor14_cfg_setup (dcmotor14_cfg_t *cfg) |
Config Object Initialization function. | |
DCMOTOR14_RETVAL | dcmotor14_init (dcmotor14_t *ctx, dcmotor14_cfg_t *cfg) |
Initialization function. | |
void | dcmotor14_set_an_state (dcmotor14_t *ctx, uint8_t state) |
Set an pin state function. | |
void | dcmotor14_set_rst_state (dcmotor14_t *ctx, uint8_t state) |
Set rst pin state function. | |
void | dcmotor14_stop (dcmotor14_t *ctx) |
Stop function. | |
void | dcmotor14_forward (dcmotor14_t *ctx) |
Forward function. | |
void | dcmotor14_reverse (dcmotor14_t *ctx) |
Reverse function. | |
void | dcmotor14_brake (dcmotor14_t *ctx) |
Brake function. | |
void dcmotor14_brake | ( | dcmotor14_t * | ctx | ) |
Brake function.
ctx | Click object. |
@description This functio is used to brake the motor.
void dcmotor14_cfg_setup | ( | dcmotor14_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void dcmotor14_forward | ( | dcmotor14_t * | ctx | ) |
Forward function.
ctx | Click object. |
@description This functio is used to drive the motor forward.
DCMOTOR14_RETVAL dcmotor14_init | ( | dcmotor14_t * | ctx, |
dcmotor14_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 dcmotor14_reverse | ( | dcmotor14_t * | ctx | ) |
Reverse function.
ctx | Click object. |
@description This functio is used to drive the motor in reverse.
void dcmotor14_set_an_state | ( | dcmotor14_t * | ctx, |
uint8_t | state ) |
Set an pin state function.
ctx | Click object. |
state | 0 - an pin cleared / 1 - an pin set |
@description This function is used to set or clear an pin.
void dcmotor14_set_rst_state | ( | dcmotor14_t * | ctx, |
uint8_t | state ) |
Set rst pin state function.
ctx | Click object. |
state | 0 - rst pin cleared / 1 - rst pin set |
@description This function is used to set or clear rst pin.
void dcmotor14_stop | ( | dcmotor14_t * | ctx | ) |
Stop function.
ctx | Click object. |
@description This function is used to stop the motor and put the device into standby mode after 1 ms.