multisteppertb67s101 2.0.0.0
multisteppertb67s101.h File Reference

This file contains API for Multi Stepper TB67S101 Click Driver. More...

#include "drv_digital_out.h"
#include "drv_i2c_master.h"

Go to the source code of this file.

Data Structures

struct  multisteppertb67s101_t
 Multi Stepper TB67S101 Click context object. More...
 
struct  multisteppertb67s101_cfg_t
 Multi Stepper TB67S101 Click configuration object. More...
 

Macros

#define MULTISTEPPERTB67S101_REG_INPUT   0x00
 Multi Stepper TB67S101 PCA9538A registers.
 
#define MULTISTEPPERTB67S101_REG_OUTPUT   0x01
 
#define MULTISTEPPERTB67S101_REG_POLARITY   0x02
 
#define MULTISTEPPERTB67S101_REG_CONFIG   0x03
 
#define MULTISTEPPERTB67S101_PHASEA_PIN   0x02
 Multi Stepper TB67S101 PCA9538A pin mask.
 
#define MULTISTEPPERTB67S101_PHASEB_PIN   0x04
 
#define MULTISTEPPERTB67S101_DEFAULT_CONFIG   0xF9
 Multi Stepper TB67S101 PCA9538A pin direction config.
 
#define MULTISTEPPERTB67S101_DIR_CW   0
 Multi Stepper TB67S101 direction setting.
 
#define MULTISTEPPERTB67S101_DIR_CCW   1
 
#define MULTISTEPPERTB67S101_PIN_LOW_LEVEL   0
 Multi Stepper TB67S101 pin logic level setting.
 
#define MULTISTEPPERTB67S101_PIN_HIGH_LEVEL   1
 
#define MULTISTEPPERTB67S101_MODE_FULL_STEP   0x00
 Multi Stepper TB67S101 step resolution setting.
 
#define MULTISTEPPERTB67S101_MODE_HALF_STEP   0x01
 
#define MULTISTEPPERTB67S101_MODE_QUARTER_STEP   0x02
 
#define MULTISTEPPERTB67S101_SPEED_VERY_SLOW   0
 Multi Stepper TB67S101 device speed settings.
 
#define MULTISTEPPERTB67S101_SPEED_SLOW   1
 
#define MULTISTEPPERTB67S101_SPEED_MEDIUM   2
 
#define MULTISTEPPERTB67S101_SPEED_FAST   3
 
#define MULTISTEPPERTB67S101_SPEED_VERY_FAST   4
 
#define MULTISTEPPERTB67S101_DEVICE_ADDRESS_A1A0_00   0x70
 Multi Stepper TB67S101 device address setting.
 
#define MULTISTEPPERTB67S101_DEVICE_ADDRESS_A1A0_01   0x71
 
#define MULTISTEPPERTB67S101_DEVICE_ADDRESS_A1A0_10   0x72
 
#define MULTISTEPPERTB67S101_DEVICE_ADDRESS_A1A0_11   0x73
 
#define MULTISTEPPERTB67S101_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  multisteppertb67s101_return_value_t { MULTISTEPPERTB67S101_OK = 0 , MULTISTEPPERTB67S101_ERROR = -1 }
 Multi Stepper TB67S101 Click return value data. More...
 

Functions

void multisteppertb67s101_cfg_setup (multisteppertb67s101_cfg_t *cfg)
 Multi Stepper TB67S101 configuration object setup function.
 
err_t multisteppertb67s101_init (multisteppertb67s101_t *ctx, multisteppertb67s101_cfg_t *cfg)
 Multi Stepper TB67S101 initialization function.
 
err_t multisteppertb67s101_default_cfg (multisteppertb67s101_t *ctx)
 Multi Stepper TB67S101 default configuration function.
 
err_t multisteppertb67s101_write_register (multisteppertb67s101_t *ctx, uint8_t reg, uint8_t data_in)
 Multi Stepper TB67S101 write register function.
 
err_t multisteppertb67s101_read_register (multisteppertb67s101_t *ctx, uint8_t reg, uint8_t *data_out)
 Multi Stepper TB67S101 read register function.
 
err_t multisteppertb67s101_drive_motor (multisteppertb67s101_t *ctx, uint32_t steps, uint8_t speed)
 Multi Stepper TB67S101 driver motor function.
 
void multisteppertb67s101_enable_device (multisteppertb67s101_t *ctx)
 Multi Stepper TB67S101 enable device function.
 
void multisteppertb67s101_disable_device (multisteppertb67s101_t *ctx)
 Multi Stepper TB67S101 disable device function.
 
void multisteppertb67s101_set_ina1_pin (multisteppertb67s101_t *ctx, uint8_t state)
 Multi Stepper TB67S101 set ina1 pin function.
 
void multisteppertb67s101_set_ina2_pin (multisteppertb67s101_t *ctx, uint8_t state)
 Multi Stepper TB67S101 set ina2 pin function.
 
void multisteppertb67s101_set_inb1_pin (multisteppertb67s101_t *ctx, uint8_t state)
 Multi Stepper TB67S101 set inb1 pin function.
 
void multisteppertb67s101_set_inb2_pin (multisteppertb67s101_t *ctx, uint8_t state)
 Multi Stepper TB67S101 set inb2 pin function.
 
void multisteppertb67s101_set_step_mode (multisteppertb67s101_t *ctx, uint8_t mode)
 Multi Stepper TB67S101 set step mode function.
 
void multisteppertb67s101_set_direction (multisteppertb67s101_t *ctx, uint8_t dir)
 Multi Stepper TB67S101 set direction function.
 
void multisteppertb67s101_switch_direction (multisteppertb67s101_t *ctx)
 Multi Stepper TB67S101 switch direction function.
 

Detailed Description

This file contains API for Multi Stepper TB67S101 Click Driver.

Enumeration Type Documentation

◆ multisteppertb67s101_return_value_t

Multi Stepper TB67S101 Click return value data.

Predefined enum values for driver return values.

Enumerator
MULTISTEPPERTB67S101_OK 
MULTISTEPPERTB67S101_ERROR