C# Класс lucidcode.LucidScribe.Plugin.TI.EZ430.Chronos

Communication class to communicate with eZ430-Chronos access point (with standard firmware)
Показать файл Открыть проект

Открытые методы

Метод Описание
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