dcmotor10 2.0.0.0
|
Functions | |
void | dcmotor10_cfg_setup (dcmotor10_cfg_t *cfg) |
Config Object Initialization function. | |
DCMOTOR10_RETVAL | dcmotor10_init (dcmotor10_t *ctx, dcmotor10_cfg_t *cfg) |
Initialization function. | |
void | dcmotor10_send_cmd (dcmotor10_t *ctx, uint16_t wr_data) |
Send command function. | |
uint16_t | dcmotor10_read_status (dcmotor10_t *ctx) |
Read status function. | |
void | dcmotor10_inhibit (dcmotor10_t *ctx, uint8_t state) |
Inhibit device function. | |
void dcmotor10_cfg_setup | ( | dcmotor10_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void dcmotor10_inhibit | ( | dcmotor10_t * | ctx, |
uint8_t | state ) |
Inhibit device function.
ctx | Click object. |
state | 8-bit command. |
@description Function is used to inhibit or uninhibit the device.
DCMOTOR10_RETVAL dcmotor10_init | ( | dcmotor10_t * | ctx, |
dcmotor10_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.
uint16_t dcmotor10_read_status | ( | dcmotor10_t * | ctx | ) |
Read status function.
ctx | Click object. |
@description Function is used to read status.
void dcmotor10_send_cmd | ( | dcmotor10_t * | ctx, |
uint16_t | wr_data ) |
Send command function.
ctx | Click object. |
wr_data | 16-bit input command |
@description Function is used to send command.