C# Class Optifert.FTDI

Show file Open project: pa3gsb/RadioBerry

Public Properties

Property Type Description
Instance FTDI

Public Methods

Method Description
I2Cread ( UInt32 deviceAddress, UInt32 sizeToTransfer, byte buffer, UInt32 &sizeTransfered, UInt32 options ) : uint
I2Cwrite ( UInt32 deviceAddress, UInt32 sizeToTransfer, byte buffer, UInt32 &sizeTransfered, UInt32 options ) : uint
Init ( uint channel ) : int
clearGPIO ( byte pin ) : uint
close ( ) : uint
connectionState ( ) : int
isConnected ( ) : bool
readGPIO ( byte &value ) : uint
setGPIO ( byte pin ) : uint
setGPIOdir ( byte pin, byte dir ) : uint

Private Methods

Method Description
FT_ReadGPIO ( IntPtr handler, byte &value ) : uint
FT_WriteGPIO ( IntPtr handler, byte dir, byte value ) : uint
I2C_CloseChannel ( IntPtr handler ) : uint
I2C_DeviceRead ( IntPtr handler, UInt32 deviceAddress, UInt32 sizeToTransfer, byte buffer, UInt32 &sizeTransfered, UInt32 options ) : uint
I2C_DeviceWrite ( IntPtr handler, UInt32 deviceAddress, UInt32 sizeToTransfer, byte buffer, UInt32 &sizeTransfered, UInt32 options ) : uint
I2C_GetNumChannels ( uint &NumChannels ) : uint
I2C_InitChannel ( IntPtr handler, ChannelCfg &config ) : uint
I2C_OpenChannel ( uint index, IntPtr &handler ) : uint
Init_libMPSSE ( ) : void

Method Details

I2Cread() public method

public I2Cread ( UInt32 deviceAddress, UInt32 sizeToTransfer, byte buffer, UInt32 &sizeTransfered, UInt32 options ) : uint
deviceAddress System.UInt32
sizeToTransfer System.UInt32
buffer byte
sizeTransfered System.UInt32
options System.UInt32
return uint

I2Cwrite() public method

public I2Cwrite ( UInt32 deviceAddress, UInt32 sizeToTransfer, byte buffer, UInt32 &sizeTransfered, UInt32 options ) : uint
deviceAddress System.UInt32
sizeToTransfer System.UInt32
buffer byte
sizeTransfered System.UInt32
options System.UInt32
return uint

Init() public method

public Init ( uint channel ) : int
channel uint
return int

clearGPIO() public method

public clearGPIO ( byte pin ) : uint
pin byte
return uint

close() public method

public close ( ) : uint
return uint

connectionState() public method

public connectionState ( ) : int
return int

isConnected() public method

public isConnected ( ) : bool
return bool

readGPIO() public method

public readGPIO ( byte &value ) : uint
value byte
return uint

setGPIO() public method

public setGPIO ( byte pin ) : uint
pin byte
return uint

setGPIOdir() public method

public setGPIOdir ( byte pin, byte dir ) : uint
pin byte
dir byte
return uint

Property Details

Instance public static property

public static FTDI,Optifert Instance
return FTDI