Getcardstatus, Gettrackdecodestatus, Getresponsetype – MagTek Audio Reader User Manual
Page 21: Setdevicetype

15
getCardStatus
Retrieves the Card Status
- (
NSString *
) getCardStatus
Parameters
Return Value
Card Status
getTrackDecodeStatus
Retrieves the Track Decode Status. This is a one-byte value, which indicates the status of
decoding track 1. Bit position zero indicates if there was an error decoding track 1 if the bit is
set to one. If it is zero, then no error occurred. If a track has data on it that is not noise, and it is
not decodable, then a decode error is indicated. If a decode error is indicated, the corresponding
track data length value for the track that has the error will be set to zero and no valid track data
will be supplied.
- (
NSString *
) getTrackDecodeStatus
Parameters
Return Value
Track Decode Status. Consists of three 2-byte hex values
representing the decode status for tracks 1, 2, and 3 (respectively
from left to right).
Values are:
00 = Track OK
01 = Track read Error
02 = Track is Blank
getResponseType
Retrieves the Response Type.
- (
NSString *
) getResponseType
Parameters
Return Value
For Audio Reader, always “C101”.
setDeviceType
Sets the type of device to Open
- (
void
) setDeviceType: (
UInt32
*)deviceType
Parameters
Device Type. Options:
MTSCRADeviceType.MAGTEKAUDIOREADER
MTSCRADeviceType.
MAGTEKIDYNAMO