AMIS30543 library
Public Member Functions | List of all members
AMIS30543SPI Class Reference

#include <AMIS30543.h>

Public Member Functions

void init (uint8_t slaveSelectPin)
 
uint8_t readReg (uint8_t address)
 
void writeReg (uint8_t address, uint8_t value)
 

Detailed Description

This class provides low-level functions for reading and writing from the SPI interface of an AMIS-30543 micro-stepping stepper motor driver.

Most users should use the AMIS30543 class, which provides a higher-level interface, instead of this class.

Definition at line 27 of file AMIS30543.h.

Member Function Documentation

void AMIS30543SPI::init ( uint8_t  slaveSelectPin)
inline

Configures this object to use the specified pin as a slave select pin. You must use a slave select pin; the AMIS-30543 requires it.

Definition at line 33 of file AMIS30543.h.

uint8_t AMIS30543SPI::readReg ( uint8_t  address)
inline

Reads the register at the given address and returns its raw value.

Definition at line 40 of file AMIS30543.h.

void AMIS30543SPI::writeReg ( uint8_t  address,
uint8_t  value 
)
inline

Writes the specified value to a register.

Definition at line 50 of file AMIS30543.h.


The documentation for this class was generated from the following file: