USB Host Shield 2.0
Public Member Functions | List of all members
MAX3421e< SPI_SS, INTR > Class Template Reference

#include <usbhost.h>

Inheritance diagram for MAX3421e< SPI_SS, INTR >:
Inheritance graph
[legend]

Public Member Functions

 MAX3421e ()
 
void regWr (uint8_t reg, uint8_t data)
 
uint8_t * bytesWr (uint8_t reg, uint8_t nbytes, uint8_t *data_p)
 
void gpioWr (uint8_t data)
 
uint8_t regRd (uint8_t reg)
 
uint8_t * bytesRd (uint8_t reg, uint8_t nbytes, uint8_t *data_p)
 
uint8_t gpioRd ()
 Reads the current GPI input values. More...
 
uint8_t gpioRdOutput ()
 Reads the current GPI output values. More...
 
uint16_t reset ()
 
int8_t Init ()
 
int8_t Init (int mseconds)
 
void vbusPower (VBUS_t state)
 
uint8_t getVbusState (void)
 
void busprobe ()
 
uint8_t GpxHandler ()
 
uint8_t IntHandler ()
 
uint8_t Task ()
 

Detailed Description

template<typename SPI_SS, typename INTR>
class MAX3421e< SPI_SS, INTR >

Definition at line 134 of file usbhost.h.

Constructor & Destructor Documentation

◆ MAX3421e()

template<typename SPI_SS , typename INTR >
MAX3421e< SPI_SS, INTR >::MAX3421e

Definition at line 168 of file usbhost.h.

Member Function Documentation

◆ regWr()

template<typename SPI_SS , typename INTR >
void MAX3421e< SPI_SS, INTR >::regWr ( uint8_t  reg,
uint8_t  data 
)

Definition at line 179 of file usbhost.h.

◆ bytesWr()

template<typename SPI_SS , typename INTR >
uint8_t * MAX3421e< SPI_SS, INTR >::bytesWr ( uint8_t  reg,
uint8_t  nbytes,
uint8_t *  data_p 
)

Definition at line 222 of file usbhost.h.

◆ gpioWr()

template<typename SPI_SS , typename INTR >
void MAX3421e< SPI_SS, INTR >::gpioWr ( uint8_t  data)

Definition at line 271 of file usbhost.h.

◆ regRd()

template<typename SPI_SS , typename INTR >
uint8_t MAX3421e< SPI_SS, INTR >::regRd ( uint8_t  reg)

Definition at line 280 of file usbhost.h.

◆ bytesRd()

template<typename SPI_SS , typename INTR >
uint8_t * MAX3421e< SPI_SS, INTR >::bytesRd ( uint8_t  reg,
uint8_t  nbytes,
uint8_t *  data_p 
)

Definition at line 319 of file usbhost.h.

◆ gpioRd()

template<typename SPI_SS , typename INTR >
uint8_t MAX3421e< SPI_SS, INTR >::gpioRd

Reads the current GPI input values.

Return values
uint8_tBitwise value of all 8 GPI inputs

Definition at line 386 of file usbhost.h.

◆ gpioRdOutput()

template<typename SPI_SS , typename INTR >
uint8_t MAX3421e< SPI_SS, INTR >::gpioRdOutput

Reads the current GPI output values.

Return values
uint8_tBitwise value of all 8 GPI outputs

Definition at line 399 of file usbhost.h.

◆ reset()

template<typename SPI_SS , typename INTR >
uint16_t MAX3421e< SPI_SS, INTR >::reset

Definition at line 410 of file usbhost.h.

◆ Init() [1/2]

template<typename SPI_SS , typename INTR >
int8_t MAX3421e< SPI_SS, INTR >::Init

Definition at line 424 of file usbhost.h.

◆ Init() [2/2]

template<typename SPI_SS , typename INTR >
int8_t MAX3421e< SPI_SS, INTR >::Init ( int  mseconds)

Definition at line 461 of file usbhost.h.

◆ vbusPower()

template<typename SPI_SS , typename INTR >
void MAX3421e< SPI_SS, INTR >::vbusPower ( VBUS_t  state)
inline

Definition at line 150 of file usbhost.h.

◆ getVbusState()

template<typename SPI_SS , typename INTR >
uint8_t MAX3421e< SPI_SS, INTR >::getVbusState ( void  )
inline

Definition at line 154 of file usbhost.h.

◆ busprobe()

template<typename SPI_SS , typename INTR >
void MAX3421e< SPI_SS, INTR >::busprobe

Definition at line 505 of file usbhost.h.

◆ GpxHandler()

template<typename SPI_SS , typename INTR >
uint8_t MAX3421e< SPI_SS, INTR >::GpxHandler ( )

◆ IntHandler()

template<typename SPI_SS , typename INTR >
uint8_t MAX3421e< SPI_SS, INTR >::IntHandler

Definition at line 559 of file usbhost.h.

◆ Task()

template<typename SPI_SS , typename INTR >
uint8_t MAX3421e< SPI_SS, INTR >::Task

Definition at line 540 of file usbhost.h.


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