dcmotor26 2.1.0.0
|
This file contains API for DC Motor 26 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 | dcmotor26_t |
DC Motor 26 Click context object. More... | |
struct | dcmotor26_cfg_t |
DC Motor 26 Click configuration object. More... | |
Enumerations | |
enum | dcmotor26_return_value_t { DCMOTOR26_OK = 0 , DCMOTOR26_ERROR = -1 } |
DC Motor 26 Click return value data. More... | |
Functions | |
void | dcmotor26_cfg_setup (dcmotor26_cfg_t *cfg) |
DC Motor 26 configuration object setup function. | |
err_t | dcmotor26_init (dcmotor26_t *ctx, dcmotor26_cfg_t *cfg) |
DC Motor 26 initialization function. | |
err_t | dcmotor26_default_cfg (dcmotor26_t *ctx) |
DC Motor 26 default configuration function. | |
err_t | dcmotor26_write_register (dcmotor26_t *ctx, uint8_t reg, uint32_t data_in) |
DC Motor 26 write register function. | |
err_t | dcmotor26_read_register (dcmotor26_t *ctx, uint8_t reg, uint32_t *data_out) |
DC Motor 26 read register function. | |
err_t | dcmotor26_pca9538a_write_register (dcmotor26_t *ctx, uint8_t reg, uint8_t data_in) |
DC Motor 26 pca9538a write register function. | |
err_t | dcmotor26_pca9538a_read_register (dcmotor26_t *ctx, uint8_t reg, uint8_t *data_out) |
DC Motor 26 pca9538a read register function. | |
void | dcmotor26_enter_sleep_mode (dcmotor26_t *ctx) |
DC Motor 26 enter sleep mode function. | |
void | dcmotor26_wake_up_device (dcmotor26_t *ctx) |
DC Motor 26 wake up device function. | |
uint8_t | dcmotor26_get_int_pin (dcmotor26_t *ctx) |
DC Motor 26 get int pin function. | |
void | dcmotor26_set_clk_pin (dcmotor26_t *ctx, uint8_t state) |
DC Motor 26 set clk pin function. | |
err_t | dcmotor26_set_en1_pin (dcmotor26_t *ctx, uint8_t state) |
DC Motor 26 set en1 pin function. | |
err_t | dcmotor26_get_en1_pin (dcmotor26_t *ctx, uint8_t *state) |
DC Motor 26 get en1 pin function. | |
err_t | dcmotor26_set_en2_pin (dcmotor26_t *ctx, uint8_t state) |
DC Motor 26 set en2 pin function. | |
err_t | dcmotor26_get_en2_pin (dcmotor26_t *ctx, uint8_t *state) |
DC Motor 26 get en2 pin function. | |
err_t | dcmotor26_set_cm_sel_pin (dcmotor26_t *ctx, uint8_t state) |
DC Motor 26 set cm sel pin function. | |
err_t | dcmotor26_get_cm_sel_pin (dcmotor26_t *ctx, uint8_t *state) |
DC Motor 26 get cm sel pin function. | |
err_t | dcmotor26_get_diag1_pin (dcmotor26_t *ctx, uint8_t *state) |
DC Motor 26 get diag1 pin function. | |
err_t | dcmotor26_get_diag2_pin (dcmotor26_t *ctx, uint8_t *state) |
DC Motor 26 get diag2 pin function. | |
err_t | dcmotor26_get_sleep_pin (dcmotor26_t *ctx, uint8_t *state) |
DC Motor 26 get sleep pin function. | |
err_t | dcmotor26_read_an_pin_value (dcmotor26_t *ctx, uint16_t *data_out) |
DC Motor 26 read AN pin value function. | |
err_t | dcmotor26_read_an_pin_voltage (dcmotor26_t *ctx, float *data_out) |
DC Motor 26 read AN pin voltage level function. | |
err_t | dcmotor26_get_motor_current (dcmotor26_t *ctx, float *current) |
DC Motor 26 get motor current function. | |
err_t | dcmotor26_set_ch1_operation_mode (dcmotor26_t *ctx, uint8_t mode) |
DC Motor 26 set ch1 operation mode function. | |
err_t | dcmotor26_set_ch2_operation_mode (dcmotor26_t *ctx, uint8_t mode) |
DC Motor 26 set ch2 operation mode function. | |
err_t | dcmotor26_set_ch1_drive_frequency (dcmotor26_t *ctx, uint16_t drv_freq) |
DC Motor 26 set ch1 drive frequency function. | |
err_t | dcmotor26_set_ch2_drive_frequency (dcmotor26_t *ctx, uint16_t drv_freq) |
DC Motor 26 set ch2 drive frequency function. | |
err_t | dcmotor26_set_ch1_duty_period (dcmotor26_t *ctx, uint16_t duty_period) |
DC Motor 26 set ch1 duty period function. | |
err_t | dcmotor26_set_ch2_duty_period (dcmotor26_t *ctx, uint16_t duty_period) |
DC Motor 26 set ch1 duty period function. | |
This file contains API for DC Motor 26 Click Driver.