X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=src%2Frc632.h;h=c7690ed0bc42f204f59600b403f68db126642180;hb=5fed5fd6d775183e8416d5e5c9f3fae3742be038;hp=f20766116a821d7f739db3c28b14a3d9897552df;hpb=2e5b78aa3beb31e5d9d83e693c59671faebfc932;p=librfid diff --git a/src/rc632.h b/src/rc632.h index f207661..c7690ed 100644 --- a/src/rc632.h +++ b/src/rc632.h @@ -83,9 +83,23 @@ enum rc632_reg_command { RC632_CMD_STARTUP = 0x3f, }; +enum rc632_reg_interrupt { + RC632_INT_LOALERT = 0x01, + RC632_INT_HIALERT = 0x02, + RC632_INT_IDLE = 0x04, + RC632_INT_RX = 0x08, + RC632_INT_TX = 0x10, + RC632_INT_TIMER = 0x20, + RC632_INT_SET = 0x80, +}; + enum rc632_reg_control { + RC632_CONTROL_FIFO_FLUSH = 0x01, + RC632_CONTROL_TIMER_START = 0x02, + RC632_CONTROL_TIMER_STOP = 0x04, RC632_CONTROL_CRYPTO1_ON = 0x08, RC632_CONTROL_POWERDOWN = 0x10, + RC632_CONTROL_STANDBY = 0x20, }; enum rc632_reg_error_flag { @@ -208,4 +222,26 @@ enum rc632_reg_channel_redundancy { RC632_CR_CRC3309 = 0x20, }; +enum rc632_reg_timer_control { + RC632_TMR_START_TX_BEGIN = 0x01, + RC632_TMR_START_TX_END = 0x02, + RC632_TMR_STOP_RX_BEGIN = 0x04, + RC632_TMR_STOP_RX_END = 0x08, +}; + +enum rc632_reg_timer_irq { + RC632_IRQ_LO_ALERT = 0x01, + RC632_IRQ_HI_ALERT = 0x02, + RC632_IRQ_IDLE = 0x04, + RC632_IRQ_RX = 0x08, + RC632_IRQ_TX = 0x10, + RC632_IRQ_TIMER = 0x20, + + RC632_IRQ_SET = 0x80, +}; +enum rc632_reg_secondary_status { + RC632_SEC_ST_TMR_RUNNING = 0x80, + RC632_SEC_ST_E2_READY = 0x40, + RC632_SEC_ST_CRC_READY = 0x20, +};