mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
Add command to manually set ADC mux source
This commit is contained in:
parent
6949aca9fa
commit
5fc8250f7f
3 changed files with 27 additions and 0 deletions
|
@ -646,6 +646,14 @@ void UsbPacketReceived(BYTE *packet, int len)
|
|||
case CMD_SET_LF_DIVISOR:
|
||||
FpgaSendCommand(FPGA_CMD_SET_DIVISOR, c->ext1);
|
||||
break;
|
||||
case CMD_SET_ADC_MUX:
|
||||
switch(c->ext1) {
|
||||
case 0: SetAdcMuxFor(GPIO_MUXSEL_LOPKD); break;
|
||||
case 1: SetAdcMuxFor(GPIO_MUXSEL_LORAW); break;
|
||||
case 2: SetAdcMuxFor(GPIO_MUXSEL_HIPKD); break;
|
||||
case 3: SetAdcMuxFor(GPIO_MUXSEL_HIRAW); break;
|
||||
}
|
||||
break;
|
||||
case CMD_VERSION:
|
||||
SendVersion();
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue