USB Host Shield 2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 132 of file usbhost.h.

Constructor & Destructor Documentation

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

Definition at line 166 of file usbhost.h.

Member Function Documentation

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

Definition at line 177 of file usbhost.h.

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 220 of file usbhost.h.

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

Definition at line 275 of file usbhost.h.

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

Definition at line 284 of file usbhost.h.

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 323 of file usbhost.h.

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 390 of file usbhost.h.

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 403 of file usbhost.h.

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

Definition at line 414 of file usbhost.h.

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

Definition at line 428 of file usbhost.h.

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

Definition at line 465 of file usbhost.h.

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

Definition at line 148 of file usbhost.h.

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

Definition at line 152 of file usbhost.h.

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

Definition at line 509 of file usbhost.h.

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

Definition at line 563 of file usbhost.h.

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

Definition at line 544 of file usbhost.h.


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