-
Notifications
You must be signed in to change notification settings - Fork 58
Register READ WRITE Commands
mgong98 edited this page Oct 1, 2024
·
1 revision
-R [--read] : Read data from the device, arguments required.
-W {--write] : Write data to the device, arguments required.
-n [--count] *COUNT* : read/write COUNT registers
-f [--format] : format register output
-I [--instance] *INSTANCE* : select object INSTANCE
-T [--type] *TYPE* : select object TYPE
-r [--register} *REGISTER* : start at REGISTER (offset in object when used with TYPE)
--zero : zero all configuration settings, requires separate BACKUP
EXAMPLE – Read 10 bytes from T100 Instance 2 byte offset 2 formatted
./mxt-app -R -n10 -f -I2 -T100 -r2
SPT_SELFCAPTUNINGPARAMS_T110
02: 0x89 137 1000 1001
03: 0x00 0 0000 0000
04: 0x87 135 1000 0111
05: 0x00 0 0000 0000
06: 0x7D 125 0111 1101
07: 0x00 0 0000 0000
08: 0x79 121 0111 1001
09: 0x00 0 0000 0000
10: 0x5E 94 0101 1110
11: 0x00 0 0000 0000
EXAMPLE – Read first 7 bytes of Infoblock
./mxt-app -R -n7 -r0
A6 1C 20 AA 0E 18 22
EXAMPLE – Read T7 Power Config object
./mxt-app -R -T7
FF FF 32 42 00 00 00
EXAMPLE – Zero first two bytes of T7
./mxt-app -W -T7 0000
EXAMPLE – Write T100 byte 30 value of 60 (decimal)
./mxt-app -W -n1 –T100 -r30 60