C# Class lucidcode.LucidScribe.Plugin.TI.EZ430.Chronos

Communication class to communicate with eZ430-Chronos access point (with standard firmware)
Exibir arquivo Open project: lucidcode/LucidScribe-Chronos-EZ430

Public Methods

Method Description
CloseComPort ( ) : void

Close COM port

GetAPStatus ( APStatus &status ) : bool

Get generic hardware status

GetComPortName ( ) : string

Get COM port name from Windows system using friendly name

GetData ( UInt32 &data ) : bool

Get SimpliciTI acc/ppt data (4 bytes)

GetID ( UInt32 &ID ) : bool

Get RF access point dummy ID - used by live check

GetSyncBufferStatus ( SyncStatus &status ) : bool

Get sync buffer status from RF access point

OpenComPort ( String portName ) : bool

Open COM port

ReadSyncBuffer ( byte &data ) : bool

Read data bytes from sync buffer

ResetAP ( ) : bool

Reset RF access point

SendSyncCommand ( byte data ) : bool

Send command packet to watch

SendSyncCommand ( byte data, int rcvlength, int delay ) : bool

Send command packet to watch, wait a given time, and receive a packet with a given length

StartSimpliciTI ( ) : bool

Start SimpliciTI stack in acc/ppt mode

StartSyncMode ( ) : bool

Start RF access point sync mode

StopSimpiliTI ( ) : bool

Stop SimpliciTI stack

Private Methods

Method Description
CheckResponse ( Packet response ) : bool
DataReceivedHandler ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void
GetResponse ( int count ) : Packet
SendAndReceive ( Packet packet, int receive, int delay ) : Packet
SendPacket ( Packet packet ) : void

Method Details

CloseComPort() public method

Close COM port
public CloseComPort ( ) : void
return void

GetAPStatus() public method

Get generic hardware status
public GetAPStatus ( APStatus &status ) : bool
status APStatus /// Returns one of the following values: /// HW_IDLE, HW_SIMPLICITI_STOPPED, HW_SIMPLICITI_TRYING_TO_LINK, HW_SIMPLICITI_LINKED, /// HW_BLUEROBIN_STOPPED, HW_BLUEROBIN_TRANSMITTING, HW_ERROR, HW_NO_ERROR, HW_NOT_CONNECTED ///
return bool

GetComPortName() public method

Get COM port name from Windows system using friendly name
public GetComPortName ( ) : string
return string

GetData() public method

Get SimpliciTI acc/ppt data (4 bytes)
public GetData ( UInt32 &data ) : bool
data System.UInt32
return bool

GetID() public method

Get RF access point dummy ID - used by live check
public GetID ( UInt32 &ID ) : bool
ID System.UInt32 ID of the connected access point
return bool

GetSyncBufferStatus() public method

Get sync buffer status from RF access point
public GetSyncBufferStatus ( SyncStatus &status ) : bool
status SyncStatus
return bool

OpenComPort() public method

Open COM port
public OpenComPort ( String portName ) : bool
portName String "COMx" - May be automatically determined with GetComPortName
return bool

ReadSyncBuffer() public method

Read data bytes from sync buffer
public ReadSyncBuffer ( byte &data ) : bool
data byte
return bool

ResetAP() public method

Reset RF access point
public ResetAP ( ) : bool
return bool

SendSyncCommand() public method

Send command packet to watch
public SendSyncCommand ( byte data ) : bool
data byte
return bool

SendSyncCommand() public method

Send command packet to watch, wait a given time, and receive a packet with a given length
public SendSyncCommand ( byte data, int rcvlength, int delay ) : bool
data byte
rcvlength int
delay int
return bool

StartSimpliciTI() public method

Start SimpliciTI stack in acc/ppt mode
public StartSimpliciTI ( ) : bool
return bool

StartSyncMode() public method

Start RF access point sync mode
public StartSyncMode ( ) : bool
return bool

StopSimpiliTI() public method

Stop SimpliciTI stack
public StopSimpiliTI ( ) : bool
return bool