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

LODMXVersion Class Reference

Encapsulation of a version response from the hardware interface. More...

#import <LODMXVersion.h>

Inheritance diagram for LODMXVersion:

LODMXResponse

Public Member Functions

(id) - initWithVersionByte:andCString:onBridge:
 Initilise a DMX Version with the given version details.
(unsigned char) - major
 Returns the major version number.
(unsigned char) - minor
 Returns the minor version number.
(NSString *) - text
 Returns the text part of the version (generally the copyright text).

Static Public Member Functions

(id) + responseWithVersionByte:andCString:onBridge:
 Returns an allocated and initilised DMX Version with the given version details.

Protected Attributes

unsigned char major
 The major part of the version number.
unsigned char minor
 The minor part of the version number.
NSString * text
 The text part.

Detailed Description

Encapsulation of a version response from the hardware interface.

This object is created and submitted to the NSDefaultNotificationCenter by the the LOHWBridge.


Member Function Documentation

- (id) initWithVersionByte: (unsigned char)  theByte
andCString: (char *)  theCString
onBridge: (LOHWBridge *)  theBridge 

Initilise a DMX Version with the given version details.

Parameters:
theByte The combined version number
theCString The text string
theBridge The hwBridge that is sending the response
Returns:
The DMX Response object

- (unsigned char) major  

Returns the major version number.

Returns:
The major part of the version response

- (unsigned char) minor  

Returns the minor version number.

Returns:
The minor part of the version response

+ (id) responseWithVersionByte: (unsigned char)  theByte
andCString: (char *)  theCString
onBridge: (LOHWBridge *)  theBridge 

Returns an allocated and initilised DMX Version with the given version details.

Parameters:
theByte The combined version number
theCString The text string
theBridge The hwBridge that is sending the response
Returns:
The DMX Response object

- (NSString *) text  

Returns the text part of the version (generally the copyright text).

Returns:
The text part of the version response as a String


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