dcmotor22 2.0.0.0
|
This file contains API for DC Motor 22 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | dcmotor22_t |
DC Motor 22 Click context object. More... | |
struct | dcmotor22_cfg_t |
DC Motor 22 Click configuration object. More... | |
Enumerations | |
enum | dcmotor22_return_value_t { DCMOTOR22_OK = 0 , DCMOTOR22_ERROR = -1 } |
DC Motor 22 Click return value data. More... | |
Functions | |
void | dcmotor22_cfg_setup (dcmotor22_cfg_t *cfg) |
DC Motor 22 configuration object setup function. | |
err_t | dcmotor22_init (dcmotor22_t *ctx, dcmotor22_cfg_t *cfg) |
DC Motor 22 initialization function. | |
err_t | dcmotor22_default_cfg (dcmotor22_t *ctx) |
DC Motor 22 default configuration function. | |
err_t | dcmotor22_write_register (dcmotor22_t *ctx, uint8_t reg, uint32_t data_in) |
DC Motor 22 write register function. | |
err_t | dcmotor22_read_register (dcmotor22_t *ctx, uint8_t reg, uint32_t *data_out) |
DC Motor 22 read register function. | |
err_t | dcmotor22_adc_write_setup_byte (dcmotor22_t *ctx, uint8_t setup_byte) |
DC Motor 22 ADC write setup byte function. | |
err_t | dcmotor22_adc_write_config_byte (dcmotor22_t *ctx, uint8_t config_byte) |
DC Motor 22 ADC write config byte function. | |
err_t | dcmotor22_adc_set_channel (dcmotor22_t *ctx, uint8_t channel) |
DC Motor 22 ADC set channel function. | |
err_t | dcmotor22_adc_get_voltage (dcmotor22_t *ctx, float *voltage) |
DC Motor 22 ADC get voltage function. | |
err_t | dcmotor22_get_motor_current (dcmotor22_t *ctx, uint8_t motor_sel, float *current) |
DC Motor 22 get motor current function. | |
err_t | dcmotor22_set_motor_pwm (dcmotor22_t *ctx, uint8_t motor_sel, int16_t pwm_duty) |
DC Motor 22 set motor pwm function. | |
void | dcmotor22_enable_device (dcmotor22_t *ctx) |
DC Motor 22 enable device function. | |
void | dcmotor22_disable_device (dcmotor22_t *ctx) |
DC Motor 22 disable device function. | |
void | dcmotor22_reset_device (dcmotor22_t *ctx) |
DC Motor 22 reset device function. | |
void | dcmotor22_set_device_address (dcmotor22_t *ctx, uint8_t addr) |
DC Motor 22 set device address function. | |
uint8_t | dcmotor22_get_int_pin (dcmotor22_t *ctx) |
DC Motor 22 get int pin function. | |
This file contains API for DC Motor 22 Click Driver.