|
| PSPNx (uint8_t i2c_address=0x02) |
|
uint8_t | issueCommand (char command) |
|
bool | energize () |
|
bool | deEnergize () |
|
bool | setDigitalMode () |
|
bool | setAnalogMode () |
|
int8_t | getXLJoy () |
|
int8_t | getYLJoy () |
|
int8_t | getXRJoy () |
|
int8_t | getYRJoy () |
|
void | getButtons (int8_t *buttons1, int8_t *buttons2) |
|
| NXShieldI2C (uint8_t i2c_address) |
|
void | init (void *shield, SH_BankPort bp) |
|
uint8_t | readByte (uint8_t location) |
|
uint16_t | readInteger (uint8_t location) |
|
uint32_t | readLong (uint8_t location) |
|
uint8_t * | readRegisters (uint8_t start_register, uint8_t bytes, uint8_t *buf) |
|
char * | readString (uint8_t location, uint8_t bytes_to_read, uint8_t *buffer=0, uint8_t buffer_length=0) |
|
bool | writeRegisters (uint8_t start_register, uint8_t bytes_to_write, uint8_t *buffer=0) |
|
bool | writeByte (uint8_t location, uint8_t data) |
|
bool | writeInteger (uint8_t location, uint16_t data) |
|
bool | writeLong (uint8_t location, uint32_t data) |
|
char * | getFirmwareVersion () |
|
char * | getVendorID () |
|
char * | getDeviceID () |
|
char * | getFeatureSet () |
|
uint8_t | getErrorCode () |
|
bool | checkAddress () |
|
bool | setAddress (uint8_t address) |
|
| BaseI2CDevice (uint8_t i2c_address) |
|
void | initProtocol () |
|
uint8_t * | readRegisters (uint8_t start_register, uint8_t bytes_to_read, uint8_t *buffer=0, uint8_t buffer_length=0, bool clear_buffer=false) |
|
uint8_t | readByte (uint8_t location) |
|
int16_t | readInteger (uint8_t location) |
|
uint32_t | readLong (uint8_t location) |
|
char * | readString (uint8_t location, uint8_t bytes_to_read, uint8_t *buffer=0, uint8_t buffer_length=0) |
|
bool | writeRegisters (uint8_t start_register, uint8_t bytes_to_write, uint8_t *buffer=0) |
|
bool | writeByte (uint8_t location, uint8_t data) |
|
bool | writeInteger (uint8_t location, uint16_t data) |
|
bool | writeLong (uint8_t location, uint32_t data) |
|
bool | checkAddress () |
|
bool | setAddress (uint8_t i2c_address) |
|
uint8_t | getAddress () |
|
uint8_t | getWriteErrorCode () |
|
char * | getFirmwareVersion () |
|
char * | getVendorID () |
|
char * | getDeviceID () |
|
char * | getFeatureSet () |
|
uint8_t | start (uint8_t addressRW) |
|
void | stop (void) |
|
uint8_t | restart (uint8_t addressRW) |
|
uint8_t | write (uint8_t b) |
|
uint8_t | read (uint8_t last) |
|
| SoftI2cMaster (uint8_t devAddr) |
|
void | initProtocol (uint8_t sclPin=NULL, uint8_t sdaPin=NULL) |
|
uint8_t * | readRegisters (uint8_t startRegister, uint8_t bytes, uint8_t *buf=NULL) |
|
bool | writeRegistersWithLocation (int bytes, uint8_t *buf) |
|
bool | writeRegisters (uint8_t location, uint8_t bytes_to_write, uint8_t *buffer=0) |
|
bool | writeByte (uint8_t location, uint8_t data) |
|
bool | writeInteger (uint8_t location, uint16_t data) |
|
bool | writeLong (uint8_t location, uint32_t data) |
|
char * | readString (uint8_t startRegister, uint8_t bytes, uint8_t *buf=NULL, uint8_t len=0) |
|
uint8_t | readByte (uint8_t location) |
|
int16_t | readInteger (uint8_t location) |
|
uint32_t | readLong (uint8_t location) |
|
char * | getFirmwareVersion () |
|
char * | getVendorID () |
|
char * | getDeviceID () |
|
uint8_t | getWriteErrorCode () |
|
bool | checkAddress () |
|
bool | setAddress (uint8_t address) |
|
This class interfaces with PSP-Nx attached to NXShield.