package module.decode.p25.message.tsbk.vendor; public enum VendorOpcode { OP00( "OPCODE 00 ", "VENDOR OPCODE 0x00", 0x00 ), OP01( "OPCODE 01 ", "VENDOR OPCODE 0x01", 0x01 ), OP02( "OPCODE 02 ", "VENDOR OPCODE 0x02", 0x02 ), OP03( "OPCODE 03 ", "VENDOR OPCODE 0x03", 0x03 ), OP04( "OPCODE 04 ", "VENDOR OPCODE 0x04", 0x04 ), OP05( "OPCODE 05 ", "VENDOR OPCODE 0x05", 0x05 ), OP06( "OPCODE 06 ", "VENDOR OPCODE 0x06", 0x06 ), OP07( "OPCODE 07 ", "VENDOR OPCODE 0x07", 0x07 ), OP08( "OPCODE 08 ", "VENDOR OPCODE 0x08", 0x08 ), OP09( "OPCODE 09 ", "VENDOR OPCODE 0x09", 0x09 ), OP0A( "OPCODE 0A ", "VENDOR OPCODE 0x0A", 0x0A ), OP0B( "OPCODE 0B ", "VENDOR OPCODE 0x0B", 0x0B ), OP0C( "OPCODE 0C ", "VENDOR OPCODE 0x0C", 0x0C ), OP0D( "OPCODE 0D ", "VENDOR OPCODE 0x0D", 0x0D ), OP0E( "OPCODE 0E ", "VENDOR OPCODE 0x0E", 0x0E ), OP0F( "OPCODE 0F ", "VENDOR OPCODE 0x0F", 0x0F ), OP10( "OPCODE 10 ", "VENDOR OPCODE 0x10", 0x10 ), OP11( "OPCODE 11 ", "VENDOR OPCODE 0x11", 0x11 ), OP12( "OPCODE 12 ", "VENDOR OPCODE 0x12", 0x12 ), OP13( "OPCODE 13 ", "VENDOR OPCODE 0x13", 0x13 ), OP14( "OPCODE 14 ", "VENDOR OPCODE 0x14", 0x14 ), OP15( "OPCODE 15 ", "VENDOR OPCODE 0x15", 0x15 ), OP16( "OPCODE 16 ", "VENDOR OPCODE 0x16", 0x16 ), OP17( "OPCODE 17 ", "VENDOR OPCODE 0x17", 0x17 ), OP18( "OPCODE 18 ", "VENDOR OPCODE 0x18", 0x18 ), OP19( "OPCODE 19 ", "VENDOR OPCODE 0x19", 0x19 ), OP1A( "OPCODE 1A ", "VENDOR OPCODE 0x1A", 0x1A ), OP1B( "OPCODE 1B ", "VENDOR OPCODE 0x1B", 0x1B ), OP1C( "OPCODE 1C ", "VENDOR OPCODE 0x1C", 0x1C ), OP1D( "OPCODE 1D ", "VENDOR OPCODE 0x1D", 0x1D ), OP1E( "OPCODE 1E ", "VENDOR OPCODE 0x1E", 0x1E ), OP1F( "OPCODE 1F ", "VENDOR OPCODE 0x1F", 0x1F ), OP20( "OPCODE 20 ", "VENDOR OPCODE 0x20", 0x20 ), OP21( "OPCODE 21 ", "VENDOR OPCODE 0x21", 0x21 ), OP22( "OPCODE 22 ", "VENDOR OPCODE 0x22", 0x22 ), OP23( "OPCODE 23 ", "VENDOR OPCODE 0x23", 0x23 ), OP24( "OPCODE 24 ", "VENDOR OPCODE 0x24", 0x24 ), OP25( "OPCODE 25 ", "VENDOR OPCODE 0x25", 0x25 ), OP26( "OPCODE 26 ", "VENDOR OPCODE 0x26", 0x26 ), OP27( "OPCODE 27 ", "VENDOR OPCODE 0x27", 0x27 ), OP28( "OPCODE 28 ", "VENDOR OPCODE 0x28", 0x28 ), OP29( "OPCODE 29 ", "VENDOR OPCODE 0x29", 0x29 ), OP2A( "OPCODE 2A ", "VENDOR OPCODE 0x2A", 0x2A ), OP2B( "OPCODE 2B ", "VENDOR OPCODE 0x2B", 0x2B ), OP2C( "OPCODE 2C ", "VENDOR OPCODE 0x2C", 0x2C ), OP2D( "OPCODE 2D ", "VENDOR OPCODE 0x2D", 0x2D ), OP2E( "OPCODE 2E ", "VENDOR OPCODE 0x2E", 0x2E ), OP2F( "OPCODE 2F ", "VENDOR OPCODE 0x2F", 0x2F ), OP30( "OPCODE 30 ", "VENDOR OPCODE 0x30", 0x30 ), OP31( "OPCODE 31 ", "VENDOR OPCODE 0x31", 0x31 ), OP32( "OPCODE 32 ", "VENDOR OPCODE 0x32", 0x32 ), OP33( "OPCODE 33 ", "VENDOR OPCODE 0x33", 0x33 ), OP34( "OPCODE 34 ", "VENDOR OPCODE 0x34", 0x34 ), OP35( "OPCODE 35 ", "VENDOR OPCODE 0x35", 0x35 ), OP36( "OPCODE 36 ", "VENDOR OPCODE 0x36", 0x36 ), OP37( "OPCODE 37 ", "VENDOR OPCODE 0x37", 0x37 ), OP38( "OPCODE 38 ", "VENDOR OPCODE 0x38", 0x38 ), OP39( "OPCODE 39 ", "VENDOR OPCODE 0x39", 0x39 ), OP3A( "OPCODE 3A ", "VENDOR OPCODE 0x3A", 0x3A ), OP3B( "OPCODE 3B ", "VENDOR OPCODE 0x3B", 0x3B ), OP3C( "OPCODE 3C ", "VENDOR OPCODE 0x3C", 0x3C ), OP3D( "OPCODE 3D ", "VENDOR OPCODE 0x3D", 0x3D ), OP3E( "OPCODE 3E ", "VENDOR OPCODE 0x3E", 0x3E ), OP3F( "OPCODE 3F ", "VENDOR OPCODE 0x3F", 0x3F ), UNKNOWN( "UNKNOWN ", "Unknown", -1 ); private String mLabel; private String mDescription; private int mCode; private VendorOpcode( String label, String description, int code ) { mLabel = label; mDescription = description; mCode = code; } public String getLabel() { return mLabel; } public String toString() { return getLabel(); } public String getDescription() { return mDescription; } public int getCode() { return mCode; } public static VendorOpcode fromValue( int value ) { if( 0 <= value && value <= 0x3F ) { return VendorOpcode.values()[ value ]; } return UNKNOWN; } }