use this if you know "the code" of the bitmap and retrieve its class, keyname (and description) BITMAPS_ARGS is created from BITMAPS, representing bitmaps in a key-value-store. use this if you know "the key name" of the bitmap and want to get its class, code (and description) """ from ecrterm.packets.bmp import BMP BITMAPS = { 0x01 : (BMP.FormatByte(1), 'timeout', "binary time-out"), 0x02 : (BMP.FormatByte(1), 'max_status_infos', "binary max.status infos"), 0x03 : (BMP.FormatByte(1), 'service_byte', "binary service-byte"), 0x04 : (BMP.FormatBCDByte(6), 'amount', "Amount"), 0x05 : (BMP.FormatByte(1), 'pump_nr', "binary pump-Nr."), 0x06 : (BMP.FormatTLV(), 'tlv', "TLV"), 0x0B : (BMP.FormatBCDByte(3), 'trace_number', "trace-number"), 0x0C : (BMP.FormatBCDByte(3), 'time', "Time"), 0x0D : (BMP.FormatBCDByte(2), 'date_day', "date, MM DD (see AA)"), 0x0E : (BMP.FormatBCDByte(2), 'card_expire', "expiry-date, YY MM"), 0x17 : (BMP.FormatBCDByte(2), 'card_sequence_number', "card sequence-number"), 0x19 : (BMP.FormatByte(1), 'type', "binary status-byte/payment-type/card-type"), 0x22 : (BMP.FormatLLVAR(), 'card_number', "card_number, PAN / EF_ID, 'E' used to indicate masked numeric digit"), 0x23 : (BMP.FormatLLVAR(), 'track_2', "track 2 data, 'E' used to indicate masked numeric digit1"), 0x24 : (BMP.FormatLLLVAR(), 'track_3', "track 3 data, 'E' used to indicate masked numeric digit1"), 0x27 : (BMP.FormatByte(1), 'result_code', "binary result-code"), 0x29 : (BMP.FormatBCDByte(4), 'tid', "TID"), 0x2A : (BMP.FormatByte(15), 'vu', "ASCII VU-number"), 0x2D : (BMP.FormatLLVAR(), 'track_1', "track 1 data"), 0x2E : (BMP.FormatLLLVAR(), 'sync_chip_data', "sychronous chip data"), 0x37 : (BMP.FormatBCDByte(3), 'trace_number_original', "trace-number of the original transaction for reversal"),
use this if you know "the code" of the bitmap and retrieve its class, keyname (and description) BITMAPS_ARGS is created from BITMAPS, representing bitmaps in a key-value-store. use this if you know "the key name" of the bitmap and want to get its class, code (and description) """ from ecrterm.packets.bmp import BMP BITMAPS = { 0x01: (BMP.FormatByte(1), 'timeout', 'binary time-out'), 0x02: (BMP.FormatByte(1), 'max_status_infos', 'binary max.status infos'), 0x03: (BMP.FormatByte(1), 'service_byte', 'binary service-byte'), 0x04: (BMP.FormatBCDByte(6), 'amount', 'Amount'), 0x05: (BMP.FormatByte(1), 'pump_nr', 'binary pump-Nr.'), 0x06: (BMP.FormatTLV(), 'tlv', 'TLV'), 0x0B: (BMP.FormatBCDByte(3), 'trace_number', 'trace-number'), 0x0C: (BMP.FormatBCDByte(3), 'time', 'Time'), 0x0D: (BMP.FormatBCDByte(2), 'date_day', 'date, MM DD (see AA)'), 0x0E: (BMP.FormatBCDByte(2), 'card_expire', 'expiry-date, YY MM'), 0x17: (BMP.FormatBCDByte(2), 'card_sequence_number', 'card sequence-number'), 0x19: (BMP.FormatByte(1), 'type', 'binary status-byte/payment-type/card-type'), 0x22: (BMP.FormatLLVAR(), 'card_number', 'card_number, PAN / EF_ID, \'E\' used to indicate masked numeric ' 'digit'), 0x23: (BMP.FormatLLVAR(), 'track_2', 'track 2 data, \'E\' used to indicate masked numeric digit1'), 0x24: (BMP.FormatLLLVAR(), 'track_3', 'track 3 data, \'E\' used to indicate masked numeric digit1'),