AMIS30543 library
|
#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) |
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.
|
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.
|
inline |
Reads the register at the given address and returns its raw value.
Definition at line 40 of file AMIS30543.h.
|
inline |
Writes the specified value to a register.
Definition at line 50 of file AMIS30543.h.