WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
DirectOutput.Cab.Out.ComPort.PinControl Class Reference

PinControl is a Arduniobased output controller by http://www.vpforums.org/index.php?showuser=79113 Is has 4 pwm output, 6 digital outputs. DOF supports any number of these controllers. Outputs 1,8,9,10 are pwm outputs. Outputs 2,3,4,5,6,7 are digital outputs. More...

Inheritance diagram for DirectOutput.Cab.Out.ComPort.PinControl:
DirectOutput.Cab.Out.OutputControllerCompleteBase DirectOutput.General.Generic.NamedItemBase DirectOutput.Cab.Out.IOutputController DirectOutput.Cab.Out.ISupportsSetValues DirectOutput.General.Generic.INamedItem DirectOutput.General.Generic.INamedItem DirectOutput.Cab.Out.IOutputController DirectOutput.General.Generic.INamedItem

Protected Member Functions

override int GetNumberOfConfiguredOutputs ()
 This method must return the number of configured outputs. The method is used internaly to determine the number of output objects which have to be setup. Return a fixed value for output controllers which have a fixed number of outputs. Return the value of a configurable property for controllers with a defineable number of outputs. More...
 
override bool VerifySettings ()
 Verifies the settings of the output controller. More...
 
override void UpdateOutputs (byte[] OutputValues)
 This method is called whenever new data has to be sent to the output controller. Implement the communication with your hereware in this method. More...
 
override void ConnectToController ()
 This method is called when DOF wants to connect to the controller. Implement your own logic to connect to the controller here. More...
 
override void DisconnectFromController ()
 This method is called when DOF wants to disconnect from the controller. Implement your own logic to disconnect from the controller here. More...
 
- Protected Member Functions inherited from DirectOutput.Cab.Out.OutputControllerCompleteBase
void SetupOutputs ()
 Manages to output object of the output controller. Use the GetNumberOfConfiguredOutputs() method to determine the number of outputs to be setup. More...
 
override void AfterNameChange (string OldName, string NewName)
 
- Protected Member Functions inherited from DirectOutput.General.Generic.NamedItemBase
virtual void BeforeNameChange (string OldName, string NewName)
 
virtual void OnPropertyChanged (string propertyName)
 
virtual void OnPropertyChanging (string propertyName)
 

Properties

string ComPort [get, set]
 Gets or sets the COM port for the controller. More...
 
- Properties inherited from DirectOutput.Cab.Out.OutputControllerCompleteBase
OutputList Outputs [get, set]
 Contains the OutputList object for the outputs of the output controller.
More...
 
bool UpdaterThreadIsActive [get]
 Indicates whether the UpdaterThread is active or not. More...
 
- Properties inherited from DirectOutput.General.Generic.NamedItemBase
string Name [get, set]
 Name of the named item.
Triggers BeforeNameChange before a new Name is set.
Triggers AfterNameChanged after a new name has been set. More...
 
- Properties inherited from DirectOutput.General.Generic.INamedItem
string Name [get, set]
 Gets or sets the name of the item.
Must fire the BeforeNameChange and AfterNameChange events when the value of the property is changed. More...
 
- Properties inherited from DirectOutput.Cab.Out.IOutputController
new string Name [get, set]
 Name of the IOutputController. This property is fully implemented in the abstract OutputControllerBase class. More...
 
OutputList Outputs [get, set]
 OutputList containing the IOutput objects for a IOutputController. More...
 

Additional Inherited Members

- Public Member Functions inherited from DirectOutput.Cab.Out.OutputControllerCompleteBase
void SetValues (int FirstOutput, byte[] Values)
 Sets the values for one or several outputs of the controller. More...
 
virtual void Init (Cabinet Cabinet)
 Initializes the output controller and starts the updater thread. More...
 
virtual void Finish ()
 Finishes the output controller and stop the updater thread. More...
 
void Update ()
 Triggers the update of the physical outputs More...
 
- Events inherited from DirectOutput.General.Generic.NamedItemBase
EventHandler< NameChangeEventArgsAfterNameChanged
 Event is fired after the value of the property Name has changed. More...
 
EventHandler< NameChangeEventArgsBeforeNameChanged
 Event is fired before the value of the property Name is changed. More...
 
PropertyChangedEventHandler PropertyChanged
 
PropertyChangingEventHandler PropertyChanging
 
- Events inherited from DirectOutput.General.Generic.INamedItem
EventHandler< NameChangeEventArgsBeforeNameChanged
 Occurs before the name of the item changes. More...
 
EventHandler< NameChangeEventArgsAfterNameChanged
 Occurs when after the name of the item has changed. More...
 

Detailed Description

PinControl is a Arduniobased output controller by http://www.vpforums.org/index.php?showuser=79113 Is has 4 pwm output, 6 digital outputs. DOF supports any number of these controllers. Outputs 1,8,9,10 are pwm outputs. Outputs 2,3,4,5,6,7 are digital outputs.

Definition at line 15 of file PinControl.cs.

Member Function Documentation

override void DirectOutput.Cab.Out.ComPort.PinControl.ConnectToController ( )
protectedvirtual

This method is called when DOF wants to connect to the controller. Implement your own logic to connect to the controller here.

Implements DirectOutput.Cab.Out.OutputControllerCompleteBase.

Definition at line 99 of file PinControl.cs.

override void DirectOutput.Cab.Out.ComPort.PinControl.DisconnectFromController ( )
protectedvirtual

This method is called when DOF wants to disconnect from the controller. Implement your own logic to disconnect from the controller here.

Implements DirectOutput.Cab.Out.OutputControllerCompleteBase.

Definition at line 124 of file PinControl.cs.

override int DirectOutput.Cab.Out.ComPort.PinControl.GetNumberOfConfiguredOutputs ( )
protectedvirtual

This method must return the number of configured outputs. The method is used internaly to determine the number of output objects which have to be setup. Return a fixed value for output controllers which have a fixed number of outputs. Return the value of a configurable property for controllers with a defineable number of outputs.

Returns
The number of outputs to be configured.

Implements DirectOutput.Cab.Out.OutputControllerCompleteBase.

Definition at line 27 of file PinControl.cs.

override void DirectOutput.Cab.Out.ComPort.PinControl.UpdateOutputs ( byte[]  OutputValues)
protectedvirtual

This method is called whenever new data has to be sent to the output controller. Implement the communication with your hereware in this method.

Parameters
OutputValuesArray of output values for each numbered output.

Implements DirectOutput.Cab.Out.OutputControllerCompleteBase.

Definition at line 50 of file PinControl.cs.

override bool DirectOutput.Cab.Out.ComPort.PinControl.VerifySettings ( )
protectedvirtual

Verifies the settings of the output controller.

Returns
true if the verification is OK, otherwise false

Implements DirectOutput.Cab.Out.OutputControllerCompleteBase.

Definition at line 32 of file PinControl.cs.

Property Documentation

string DirectOutput.Cab.Out.ComPort.PinControl.ComPort
getset

Gets or sets the COM port for the controller.

The COM port for the controller.

Definition at line 23 of file PinControl.cs.


The documentation for this class was generated from the following file: