usbdmx.com Home of the opto isolated, bus powered, DMX512 interface with both in and out universes. Cheap and simple to build. USBDMX logo

LOHWEnttecPro Class Reference

Implementation of a HWBridge for the Enttec Pro interface. More...

#import <LOHWEnttecPro.h>

Inheritance diagram for LOHWEnttecPro:

LOHWBridge

Public Member Functions

(id) - initWithIdentifier:
 Open a specific DMX Interface, and initlise it ready for use.
(id) - initWithPath:
 Open a specific DMX Interface, and initlise it ready for use.

Static Public Member Functions

(NSArray *) + interfacePaths
 Get a list of all possible hardware interfaces.
(NSString *) + identifierFromPath:
 Get the unique identifier from the interface path.

Protected Attributes

BOOL TX
 Flag to show if the Bridge is currently operating as a transmitter.
BOOL RX
 FLag to show if the Bridge is currently operating as a receiver.
unsigned int TXLastChannel
 Current last TX channel.
BOOL blackout
 Flag to see if we are currently in blackout.
unsigned char out_universe [513]
 Cached output universe, and start code.
BOOL new_output
 Set to true when there is some new output.
unsigned char RXStartCode
NSString * version
 < The start code the of the last received DMX Frame
NSString * serialNumber
 Device serial number.
BOOL DMXIS
NSString * pathToInterface
 The full path the to the interfaces device node.
int fd
 The file descriptor used when the interface device is open.
BOOL shouldReceiverBeRunning
 Flag to tell the receiver if it should be running.
NSThread * receiverThread
 The receiver Thread handle.
NSLock * threadRunningLock
 A thread lock used to sychronise the exiting of the receiver thread.

Detailed Description

Implementation of a HWBridge for the Enttec Pro interface.

This interface support both TX and RX, but not at the same time.

See also:
http://www.enttec.com

Member Function Documentation

+ (NSString *) identifierFromPath: (NSString *)  path  

Get the unique identifier from the interface path.

- (id) initWithIdentifier: (NSString *)  identifier  

Open a specific DMX Interface, and initlise it ready for use.

Parameters:
identifier The identifier to the device driver of the interface
A bridge should always be obtained via the hardware manager, and not directly.

YOU SHOULD NEVER NEED TO CALL THIS FUNCTION.

Returns:
The HW Bridge
See also:
LOHWManager

- (id) initWithPath: (NSString *)  thePath  

Open a specific DMX Interface, and initlise it ready for use.

Parameters:
thePath The path to the device driver of the interface
A bridge should always be obtained via the hardware manager, and not directly.

YOU SHOULD NEVER NEED TO CALL THIS FUNCTION.

Returns:
The HW Bridge
See also:
LOHWManager

+ (NSArray *) interfacePaths  

Get a list of all possible hardware interfaces.

These paths can be passed into initWithPath:

Returns:
An Array (as NSString objects) of Paths

Reimplemented from LOHWBridge.


Field Documentation

- (NSString *) version [protected]

< The start code the of the last received DMX Frame

Device firmware version


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