C# 클래스 lucidcode.LucidScribe.Plugin.TI.EZ430.Chronos

Communication class to communicate with eZ430-Chronos access point (with standard firmware)
파일 보기 프로젝트 열기: lucidcode/LucidScribe-Chronos-EZ430

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CloseComPort() 공개 메소드

Close COM port
public CloseComPort ( ) : void
리턴 void

GetAPStatus() 공개 메소드

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 ///
리턴 bool

GetComPortName() 공개 메소드

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

GetData() 공개 메소드

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

GetID() 공개 메소드

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

GetSyncBufferStatus() 공개 메소드

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

OpenComPort() 공개 메소드

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

ReadSyncBuffer() 공개 메소드

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

ResetAP() 공개 메소드

Reset RF access point
public ResetAP ( ) : bool
리턴 bool

SendSyncCommand() 공개 메소드

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

SendSyncCommand() 공개 메소드

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
리턴 bool

StartSimpliciTI() 공개 메소드

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

StartSyncMode() 공개 메소드

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

StopSimpiliTI() 공개 메소드

Stop SimpliciTI stack
public StopSimpiliTI ( ) : bool
리턴 bool