From 8a29be07ae3a7e69732be380f91298dd667d1400 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> Date: Mon, 4 Sep 2006 18:42:26 +0000 Subject: add ADC command class git-svn-id: https://svn.openpcd.org:2342/trunk@140 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpcd/firmware/include/openpcd.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openpcd/firmware/include/openpcd.h b/openpcd/firmware/include/openpcd.h index 68adddc..6fdf4e4 100644 --- a/openpcd/firmware/include/openpcd.h +++ b/openpcd/firmware/include/openpcd.h @@ -21,8 +21,9 @@ enum openpcd_cmd_class { OPENPCD_CMD_CLS_LED = 0x2, OPENPCD_CMD_CLS_SSC = 0x3, OPENPCD_CMD_CLS_PWM = 0x4, + OPENPCD_CMD_CLS_ADC = 0x5, /* PICC (transponder) side */ - OPENPCD_CMD_CLS_PICC = 0x5, + OPENPCD_CMD_CLS_PICC = 0xe, OPENPCD_CMD_CLS_USBTEST = 0xf, }; @@ -64,6 +65,9 @@ enum openpcd_cmd_class { #define OPENPCD_CMD_PICC_REG_WRITE (0x1|OPENPCD_CLS2CMD(OPENPCD_CMD_CLS_PICC)) #define OPENPCD_CMD_PICC_REG_READ (0x2|OPENPCD_CLS2CMD(OPENPCD_CMD_CLS_PICC)) +/* CMD_CLS_ADC */ +#define OPENPC_CMD_ADC_READ (0x1|OPENPCD_CLS2CMD(OPENPCD_CMD_CLS_ADC)) + /* CMD_CLS_USBTEST */ #define OPENPCD_CMD_USBTEST_IN (0x1|OPENPCD_CLS2CMD(OPENPCD_CMD_CLS_USBTEST)) #define OPENPCD_CMD_USBTEST_OUT (0x2|OPENPCD_CLS2CMD(OPENPCD_CMD_CLS_USBTEST)) -- cgit v1.2.3