C# Class basic_light_board.VComWrapper

Afficher le fichier Open project: ImagineLearning/NerfGallery Class Usage Examples

Méthodes publiques

Свойство Type Description
comList string[]
m_port System.IO.Ports.SerialPort

Méthodes publiques

Méthode Description
GetWidgetSerialNumber ( ) : void

requests the serial number of the widget. this should match the number on the bottom of the widget.

SetWidgetParametersRequest ( float DMXOutputBreakTime, float DMXOutputMarkTime, int DMXOutRate, byte configData ) : void

sets the parameters of the widget

VComWrapper ( ) : System
decodeMessage ( DMXProMsgLabel label, byte msg ) : void
detatchPro ( ) : void
getWidgetList ( ) : void
initPro ( string portName ) : bool
m_port_DataReceived ( object sender, System e ) : void
m_port_ErrorReceived ( object sender, System e ) : void
sendDMXPacketRequest ( byte Levels ) : void

this requests that the Widget sends DMX packets out, given the following levels universe size is set my the number of bytes in "Levels" Levels.Length must be [24, 512]

sendGetWidgetParametersRequest ( UInt16 configSize ) : void

gets data about the widget including DMX Timings,Firmware Version, and any user defined data

sendMsg ( DMXProMsgLabel label, byte data ) : void

construct any message this is a helper function and should not be called directly unless implementing a new type of message

sendMsg ( System port, DMXProMsgLabel label, byte data ) : void
sendProgramFlashPageRequest ( byte page ) : void

programs one page of the Widgets Flash

sendReprogramFirmwareRequest ( ) : void

tells the Widget that we want to reprogram it's flash

setSendDMXOnChangeOnly ( ) : void

tells the widget to send the "DMX Changed packet" when the dmx signal changes

setSendDMXalways ( ) : void

tells the widget to send every dmx packet it receives

Private Methods

Méthode Description
temp_DataReceived ( object sender, System e ) : void

Method Details

GetWidgetSerialNumber() public méthode

requests the serial number of the widget. this should match the number on the bottom of the widget.
public GetWidgetSerialNumber ( ) : void
Résultat void

SetWidgetParametersRequest() public méthode

sets the parameters of the widget
public SetWidgetParametersRequest ( float DMXOutputBreakTime, float DMXOutputMarkTime, int DMXOutRate, byte configData ) : void
DMXOutputBreakTime float the low time at the start of a DMX Packet (>88 uS) usually 100-120uS
DMXOutputMarkTime float
DMXOutRate int
configData byte
Résultat void

VComWrapper() public méthode

public VComWrapper ( ) : System
Résultat System

decodeMessage() public méthode

public decodeMessage ( DMXProMsgLabel label, byte msg ) : void
label DMXProMsgLabel
msg byte
Résultat void

detatchPro() public méthode

public detatchPro ( ) : void
Résultat void

getWidgetList() public static méthode

public static getWidgetList ( ) : void
Résultat void

initPro() public méthode

public initPro ( string portName ) : bool
portName string
Résultat bool

m_port_DataReceived() public méthode

public m_port_DataReceived ( object sender, System e ) : void
sender object
e System
Résultat void

m_port_ErrorReceived() public méthode

public m_port_ErrorReceived ( object sender, System e ) : void
sender object
e System
Résultat void

sendDMXPacketRequest() public méthode

this requests that the Widget sends DMX packets out, given the following levels universe size is set my the number of bytes in "Levels" Levels.Length must be [24, 512]
public sendDMXPacketRequest ( byte Levels ) : void
Levels byte
Résultat void

sendGetWidgetParametersRequest() public méthode

gets data about the widget including DMX Timings,Firmware Version, and any user defined data
public sendGetWidgetParametersRequest ( UInt16 configSize ) : void
configSize System.UInt16 the size of the user defined Data
Résultat void

sendMsg() public méthode

construct any message this is a helper function and should not be called directly unless implementing a new type of message
public sendMsg ( DMXProMsgLabel label, byte data ) : void
label DMXProMsgLabel the enumeration label of the message you are sending
data byte and pertinent data the message type requires
Résultat void

sendMsg() public static méthode

public static sendMsg ( System port, DMXProMsgLabel label, byte data ) : void
port System
label DMXProMsgLabel
data byte
Résultat void

sendProgramFlashPageRequest() public méthode

programs one page of the Widgets Flash
public sendProgramFlashPageRequest ( byte page ) : void
page byte an array of 64 bytes that corrisponds to a page of flash
Résultat void

sendReprogramFirmwareRequest() public méthode

tells the Widget that we want to reprogram it's flash
public sendReprogramFirmwareRequest ( ) : void
Résultat void

setSendDMXOnChangeOnly() public méthode

tells the widget to send the "DMX Changed packet" when the dmx signal changes
public setSendDMXOnChangeOnly ( ) : void
Résultat void

setSendDMXalways() public méthode

tells the widget to send every dmx packet it receives
public setSendDMXalways ( ) : void
Résultat void

Property Details

comList public_oe static_oe property

public static string[] comList
Résultat string[]

m_port public_oe property

public System.IO.Ports.SerialPort m_port
Résultat System.IO.Ports.SerialPort