Overview
HPSDRDecode is used by the Metis object to decode control strings that are returned from a Metis device. You will usually not need to interface directly with HPSDRDecode. The HPSDRDecode API is included here for reference only.
Tasks
Creating an HPSDRDecode object
Accepting New Control Strings
Delegates
Reading the Cached Controls
Instance Methods
delegate
Returns the delegate that receives the MetisControlDelegate callbacks.
- (id <MetisControlDelegate>)delegate
Return Value
The MetisControlDelegate, or nil if it has not been set.
initWithMetis:
Initializes a HPSDR Format decoder. The input Metis object is only used to identify the Metis object that is issuing the delegate callbacks, it is not otherwise used by HPSDRDecode.
- (id)initWithMetis:(Metis*)metis
Parameters
metis
a Metis
object.
Return Value
An initialized HPSDRDecode object.
decodeControlBytes:
Decode the five control bytes C0, C1, C2, C3, C4 from an HPSDR Frame.
HPSDRDecode maintains a set of cached control bytes. If the new data are different from the corresponding data in the cache, HPSDRDecode sends the delegate the change(s).
- (void)decodeControlBytes:(unsigned char*)bytes
Parameters
bytes
an array of five
control bytes from an HPSDR Frame.
resendControls
Immediately sends all callbacks to the delegate, using the cached bytes.
- (void)resendControls
setDelegate
Sets the delegate to accept the MetisControlDelegate callbacks.
- (void)setDelegate:(id <MetisControlDelegate>)delegate
Return Value
The MetisControlDelegate, or nil if it has not been set.