Click or drag to resize

MagEncodingType Enumeration

Specifies the type of magnetic encoding to perform.

Namespace:  Zebra.Sdk.Card.Enumerations
Assembly:  SdkApi_Card_Core (in SdkApi_Card_Core.dll) Version: 2.14.1989
Syntax
public enum MagEncodingType
Members
  Member nameValueDescription
ISO0 ISO encoding with track data validation.
Magnetic encoding settings automatically configured for 'ISO/IATA' encoding.
AAMVA1 AAMVA encoding with track data validation.
Magnetic encoding settings automatically configured for 'AAMVA' encoding.
Custom3 Custom encoding without track data validation.
Binary4 Binary encoding without track data validation.

The only magnetic encoding setting that will be applied is the density setting SetMagTrackDensity(DictionaryTrackNumber, Int32).
All other magnetic encoding settings (parity, sentinels, bits per character, etc.) are ignored.

The Binary data provided for encoding is interpreted as a literal bitstream to be encoded, with the LSbit of each byte written out first. When the data is in Ascii format, each character is treated as a 8-bit integer. In Hex format, each 2-character (2 digit) ASCII hex digit pair is converted to an 8-bit integer and treated as such. Each 8-bit value is encoded in the order it was provided in the data stream, in LSbit to MSbit order.

Example: B1C2E3 (Hex) would be encoded as:
10001101 01000011 11000111
0xB1 bit 0->7 0xC2 bit 0->7 0xE3 bit 0->7
See Also