The new generation chameleon based on NRF52840 makes the performance of card emulation more stable. And gave the chameleon the ability to read, write, and decrypt cards.
list: List all choices that can be made based on the name of the enum instead of value
fix: Takes the value and checks against an enum name that has been manipulated and converted to an int, if they match it outputs the value of the name/value enum pair
Added two staticmethods to TagSenseType Enum:
list: Same as what SlotNumber does above it lists all possible choices in a pretty print (not used for actual choice)
choices: Used for the actual choices and is only the value itself
All instances of slot_num/index have been set to the type enum of SlotNumber
Usage of SlotNumber.fix is used to convert from "name" to value of the enum pair
All instances of sensetag have been set to the type enum of TagSenseType
No further changes where made as it is still using value (no trickery here)
Changes to chameleon_unit.py:
Made changes to SlotIndexRequireUint to properly reflect changes made in cmd.py
Made changes to SenseTypeRequireUint to properly reflect changes made in cmd.py
Changes to chameleon_cmd.py:
Created SlotNumber Enum with two staticmethods:
Added two staticmethods to TagSenseType Enum:
All instances of slot_num/index have been set to the type enum of SlotNumber
All instances of sensetag have been set to the type enum of TagSenseType
Changes to chameleon_unit.py:
Further testing may need to be done.
Changes to be committed: