Electronics and Software
Engineering Innovation
Beam-lib  2.15.1

BSpi class. More...

#include <BSpi.h>

Public Types

enum  Mode { Mode0 = 0, Mode1 = 1, Mode2 = 2, Mode3 = 3 }
 

Public Member Functions

 BSpi ()
 
BError init (BString devName, BUInt speed=1000000, Mode mode=Mode1, Bool csActive=0)
 
BError transact (BUInt8 dev, void *txBuf, int txLen, int pad, void *rxBuf, int rxLen)
 

Private Attributes

BString odevName
 
int odev
 

Detailed Description

BSpi class.

Member Enumeration Documentation

◆ Mode

enum BSpi::Mode
Enumerator
Mode0 
Mode1 
Mode2 
Mode3 

Constructor & Destructor Documentation

◆ BSpi()

BSpi::BSpi ( )

Member Function Documentation

◆ init()

BError BSpi::init ( BString  devName,
BUInt  speed = 1000000,
Mode  mode = Mode1,
Bool  csActive = 0 
)

◆ transact()

BError BSpi::transact ( BUInt8  dev,
void *  txBuf,
int  txLen,
int  pad,
void *  rxBuf,
int  rxLen 
)

Member Data Documentation

◆ odev

int BSpi::odev
private

◆ odevName

BString BSpi::odevName
private

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