dcmotor12 2.1.0.0
|
This file contains API for DC Motor 12 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
#include "drv_i2c_master.h"
#include "drv_analog_in.h"
Go to the source code of this file.
Data Structures | |
struct | dcmotor12_t |
DC Motor 12 Click context object. More... | |
struct | dcmotor12_cfg_t |
DC Motor 12 Click configuration object. More... | |
Enumerations | |
enum | dcmotor12_return_value_t { DCMOTOR12_OK = 0 , DCMOTOR12_ERROR = -1 } |
DC Motor 12 Click return value data. More... | |
Functions | |
void | dcmotor12_cfg_setup (dcmotor12_cfg_t *cfg) |
DC Motor 12 configuration object setup function. | |
err_t | dcmotor12_init (dcmotor12_t *ctx, dcmotor12_cfg_t *cfg) |
DC Motor 12 initialization function. | |
err_t | dcmotor12_default_cfg (dcmotor12_t *ctx) |
DC Motor 12 default configuration function. | |
err_t | dcmotor12_write_register (dcmotor12_t *ctx, uint8_t reg, uint32_t data_in) |
DC Motor 12 write register function. | |
err_t | dcmotor12_read_register (dcmotor12_t *ctx, uint8_t reg, uint32_t *data_out) |
DC Motor 12 read register function. | |
err_t | dcmotor12_pca9538a_write_register (dcmotor12_t *ctx, uint8_t reg, uint8_t data_in) |
DC Motor 12 pca9538a write register function. | |
err_t | dcmotor12_pca9538a_read_register (dcmotor12_t *ctx, uint8_t reg, uint8_t *data_out) |
DC Motor 12 pca9538a read register function. | |
void | dcmotor12_enter_sleep_mode (dcmotor12_t *ctx) |
DC Motor 12 enter sleep mode function. | |
void | dcmotor12_wake_up_device (dcmotor12_t *ctx) |
DC Motor 12 wake up device function. | |
uint8_t | dcmotor12_get_int_pin (dcmotor12_t *ctx) |
DC Motor 12 get int pin function. | |
void | dcmotor12_set_clk_pin (dcmotor12_t *ctx, uint8_t state) |
DC Motor 12 set clk pin function. | |
err_t | dcmotor12_set_en1_pin (dcmotor12_t *ctx, uint8_t state) |
DC Motor 12 set en1 pin function. | |
err_t | dcmotor12_get_en1_pin (dcmotor12_t *ctx, uint8_t *state) |
DC Motor 12 get en1 pin function. | |
err_t | dcmotor12_set_en2_pin (dcmotor12_t *ctx, uint8_t state) |
DC Motor 12 set en2 pin function. | |
err_t | dcmotor12_get_en2_pin (dcmotor12_t *ctx, uint8_t *state) |
DC Motor 12 get en2 pin function. | |
err_t | dcmotor12_set_cm_sel_pin (dcmotor12_t *ctx, uint8_t state) |
DC Motor 12 set cm sel pin function. | |
err_t | dcmotor12_get_cm_sel_pin (dcmotor12_t *ctx, uint8_t *state) |
DC Motor 12 get cm sel pin function. | |
err_t | dcmotor12_get_diag1_pin (dcmotor12_t *ctx, uint8_t *state) |
DC Motor 12 get diag1 pin function. | |
err_t | dcmotor12_get_diag2_pin (dcmotor12_t *ctx, uint8_t *state) |
DC Motor 12 get diag2 pin function. | |
err_t | dcmotor12_get_sleep_pin (dcmotor12_t *ctx, uint8_t *state) |
DC Motor 12 get sleep pin function. | |
err_t | dcmotor12_read_an_pin_value (dcmotor12_t *ctx, uint16_t *data_out) |
DC Motor 12 read AN pin value function. | |
err_t | dcmotor12_read_an_pin_voltage (dcmotor12_t *ctx, float *data_out) |
DC Motor 12 read AN pin voltage level function. | |
err_t | dcmotor12_get_motor_current (dcmotor12_t *ctx, float *current) |
DC Motor 12 get motor current function. | |
err_t | dcmotor12_set_ch1_operation_mode (dcmotor12_t *ctx, uint8_t mode) |
DC Motor 12 set ch1 operation mode function. | |
err_t | dcmotor12_set_ch2_operation_mode (dcmotor12_t *ctx, uint8_t mode) |
DC Motor 12 set ch2 operation mode function. | |
err_t | dcmotor12_set_ch1_drive_frequency (dcmotor12_t *ctx, uint16_t drv_freq) |
DC Motor 12 set ch1 drive frequency function. | |
err_t | dcmotor12_set_ch2_drive_frequency (dcmotor12_t *ctx, uint16_t drv_freq) |
DC Motor 12 set ch2 drive frequency function. | |
err_t | dcmotor12_set_ch1_duty_period (dcmotor12_t *ctx, uint16_t duty_period) |
DC Motor 12 set ch1 duty period function. | |
err_t | dcmotor12_set_ch2_duty_period (dcmotor12_t *ctx, uint16_t duty_period) |
DC Motor 12 set ch1 duty period function. | |
This file contains API for DC Motor 12 Click Driver.