C# Class CCManager.Serial

Methods to handle low-level communication between the computer and the MCU
Show file Open project: jglim/CCManager

Public Methods

Method Description
Delay ( SerialPort sp, byte delayTime ) : bool
DeselectRf ( SerialPort sp ) : bool
GetBridgeSignature ( SerialPort sp ) : string
ResetRf ( SerialPort sp ) : bool
SPITransfer ( SerialPort sp, byte dataToTransfer ) : bool
SelectRf ( SerialPort sp ) : bool
WaitMISO ( SerialPort sp ) : bool

Private Methods

Method Description
StringifyByteWithPadding ( byte inputByte ) : string

Method Details

Delay() public static method

public static Delay ( SerialPort sp, byte delayTime ) : bool
sp System.IO.Ports.SerialPort
delayTime byte
return bool

DeselectRf() public static method

public static DeselectRf ( SerialPort sp ) : bool
sp System.IO.Ports.SerialPort
return bool

GetBridgeSignature() public static method

public static GetBridgeSignature ( SerialPort sp ) : string
sp System.IO.Ports.SerialPort
return string

ResetRf() public static method

public static ResetRf ( SerialPort sp ) : bool
sp System.IO.Ports.SerialPort
return bool

SPITransfer() public static method

public static SPITransfer ( SerialPort sp, byte dataToTransfer ) : bool
sp System.IO.Ports.SerialPort
dataToTransfer byte
return bool

SelectRf() public static method

public static SelectRf ( SerialPort sp ) : bool
sp System.IO.Ports.SerialPort
return bool

WaitMISO() public static method

public static WaitMISO ( SerialPort sp ) : bool
sp System.IO.Ports.SerialPort
return bool