C# 클래스 basic_light_board.VComWrapper

파일 보기 프로젝트 열기: ImagineLearning/NerfGallery 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
comList string[]
m_port System.IO.Ports.SerialPort

공개 메소드들

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

비공개 메소드들

메소드 설명
temp_DataReceived ( object sender, System e ) : void

메소드 상세

GetWidgetSerialNumber() 공개 메소드

requests the serial number of the widget. this should match the number on the bottom of the widget.
public GetWidgetSerialNumber ( ) : void
리턴 void

SetWidgetParametersRequest() 공개 메소드

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

VComWrapper() 공개 메소드

public VComWrapper ( ) : System
리턴 System

decodeMessage() 공개 메소드

public decodeMessage ( DMXProMsgLabel label, byte msg ) : void
label DMXProMsgLabel
msg byte
리턴 void

detatchPro() 공개 메소드

public detatchPro ( ) : void
리턴 void

getWidgetList() 공개 정적인 메소드

public static getWidgetList ( ) : void
리턴 void

initPro() 공개 메소드

public initPro ( string portName ) : bool
portName string
리턴 bool

m_port_DataReceived() 공개 메소드

public m_port_DataReceived ( object sender, System e ) : void
sender object
e System
리턴 void

m_port_ErrorReceived() 공개 메소드

public m_port_ErrorReceived ( object sender, System e ) : void
sender object
e System
리턴 void

sendDMXPacketRequest() 공개 메소드

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

sendGetWidgetParametersRequest() 공개 메소드

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

sendMsg() 공개 메소드

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

sendMsg() 공개 정적인 메소드

public static sendMsg ( System port, DMXProMsgLabel label, byte data ) : void
port System
label DMXProMsgLabel
data byte
리턴 void

sendProgramFlashPageRequest() 공개 메소드

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

sendReprogramFirmwareRequest() 공개 메소드

tells the Widget that we want to reprogram it's flash
public sendReprogramFirmwareRequest ( ) : void
리턴 void

setSendDMXOnChangeOnly() 공개 메소드

tells the widget to send the "DMX Changed packet" when the dmx signal changes
public setSendDMXOnChangeOnly ( ) : void
리턴 void

setSendDMXalways() 공개 메소드

tells the widget to send every dmx packet it receives
public setSendDMXalways ( ) : void
리턴 void

프로퍼티 상세

comList 공개적으로 정적으로 프로퍼티

public static string[] comList
리턴 string[]

m_port 공개적으로 프로퍼티

public System.IO.Ports.SerialPort m_port
리턴 System.IO.Ports.SerialPort