dcmotor29 2.1.0.0
|
This file contains API for DC Motor 29 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"
Go to the source code of this file.
Data Structures | |
struct | dcmotor29_t |
DC Motor 29 Click context object. More... | |
struct | dcmotor29_cfg_t |
DC Motor 29 Click configuration object. More... | |
Enumerations | |
enum | dcmotor29_return_value_t { DCMOTOR29_OK = 0 , DCMOTOR29_ERROR = -1 } |
DC Motor 29 Click return value data. More... | |
Functions | |
void | dcmotor29_cfg_setup (dcmotor29_cfg_t *cfg) |
DC Motor 29 configuration object setup function. | |
err_t | dcmotor29_init (dcmotor29_t *ctx, dcmotor29_cfg_t *cfg) |
DC Motor 29 initialization function. | |
err_t | dcmotor29_default_cfg (dcmotor29_t *ctx) |
DC Motor 29 default configuration function. | |
err_t | dcmotor29_generic_write (dcmotor29_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
DC Motor 29 data writing function. | |
err_t | dcmotor29_generic_read (dcmotor29_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
DC Motor 29 data reading function. | |
void | dcmotor29_set_in1_pin (dcmotor29_t *ctx, uint8_t pin_state) |
DC Motor 29 set IN1 pin function. | |
void | dcmotor29_set_rst_pin (dcmotor29_t *ctx, uint8_t pin_state) |
DC Motor 29 set RST pin function. | |
uint8_t | dcmotor29_get_ip_pin (dcmotor29_t *ctx) |
DC Motor 29 get IP pin function. | |
uint8_t | dcmotor29_get_int_pin (dcmotor29_t *ctx) |
DC Motor 29 get INT pin function. | |
err_t | dcmotor29_register_write (dcmotor29_t *ctx, uint8_t reg, uint8_t data_in) |
DC Motor 29 data register writing function. | |
err_t | dcmotor29_register_read (dcmotor29_t *ctx, uint8_t reg, uint8_t *data_out) |
DC Motor 29 data register reading function. | |
err_t | dcmotor29_port_expander_write (dcmotor29_t *ctx, uint8_t reg, uint8_t data_in) |
DC Motor 29 port ecpander write register function. | |
err_t | dcmotor29_port_expander_read (dcmotor29_t *ctx, uint8_t reg, uint8_t *data_out) |
DC Motor 29 port ecpander read register function. | |
err_t | dcmotor29_set_pins (dcmotor29_t *ctx, uint8_t set_mask, uint8_t clr_mask) |
DC Motor 29 set pins function. | |
err_t | dcmotor29_drvoff_state (dcmotor29_t *ctx, uint8_t drvoff_state) |
DC Motor 29 control drvoff function. | |
err_t | dcmotor29_drive_motor (dcmotor29_t *ctx, uint8_t state) |
DC Motor 29 drive motor function. | |
This file contains API for DC Motor 29 Click Driver.