Blame | Last modification | View Log | Download | RSS feed
ifndef __macscinc__macscinc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File MACSC.INC *;* *;* Contains Bit & Register Definitions for RFRF2 MAC Symbol Counter *;* *;****************************************************************************SCCSR sfr 0xdb ; Symbol Counter Compare Source RegisterSCCS31 avrbit SCCSR,5 ; Symbol Counter Compare Source Select Register for Compare Unit 3SCCS30 avrbit SCCSR,4SCCS21 avrbit SCCSR,3 ; Symbol Counter Compare Source Select Register for Compare Unit 2SCCS20 avrbit SCCSR,2SCCS11 avrbit SCCSR,1 ; Symbol Counter Compare Source Select Register for Compare Unit 1SCCS10 avrbit SCCSR,0SCCNTHH sfr 0xe4 ; Symbol Counter Register HH-ByteSCCNTHL sfr 0xe3 ; Symbol Counter Register HL-ByteSCCNTLH sfr 0xe2 ; Symbol Counter Register LH-ByteSCCNTLL sfr 0xe1 ; Symbol Counter Register LL-ByteSCTSRHH sfr 0xec ; Symbol Counter Frame Timestamp Register HH-ByteSCTSRHL sfr 0xeb ; Symbol Counter Frame Timestamp Register HL-ByteSCTSRLH sfr 0xea ; Symbol Counter Frame Timestamp Register LH-ByteSCTSRLL sfr 0xe9 ; Symbol Counter Frame Timestamp Register LL-ByteSCTSTRHH sfr 0xfc ; Symbol Counter Transmit Frame Timestamp Register HH-ByteSCTSTRHL sfr 0xfb ; Symbol Counter Transmit Frame Timestamp Register HL-ByteSCTSTRLH sfr 0xfa ; Symbol Counter Transmit Frame Timestamp Register LH-ByteSCTSTRLL sfr 0xf9 ; Symbol Counter Transmit Frame Timestamp Register LL-ByteSCRSTRHH sfr 0xda ; Symbol Counter Received Frame Timestamp Register HH-ByteSCRSTRHL sfr 0xd9 ; Symbol Counter Received Frame Timestamp Register HL-ByteSCRSTRLH sfr 0xd8 ; Symbol Counter Received Frame Timestamp Register LH-ByteSCRSTRLL sfr 0xd7 ; Symbol Counter Received Frame Timestamp Register LL-ByteSCBTSRHH sfr 0xe8 ; Symbol Counter Beacon Timestamp Register HH-ByteSCBTSRHL sfr 0xe7 ; Symbol Counter Beacon Timestamp Register HL-ByteSCBTSRLH sfr 0xe6 ; Symbol Counter Beacon Timestamp Register LH-ByteSCBTSRLL sfr 0xe5 ; Symbol Counter Beacon Timestamp Register LL-ByteSCOCR1HH sfr 0xf8 ; Symbol Counter Output Compare Register 1 HH-ByteSCOCR1HL sfr 0xf7 ; Symbol Counter Output Compare Register 1 HL-ByteSCOCR1LH sfr 0xf6 ; Symbol Counter Output Compare Register 1 LH-ByteSCOCR1LL sfr 0xf5 ; Symbol Counter Output Compare Register 1 LL-ByteSCOCR2HH sfr 0xf4 ; Symbol Counter Output Compare Register 2 HH-ByteSCOCR2HL sfr 0xf3 ; Symbol Counter Output Compare Register 2 HL-ByteSCOCR2LH sfr 0xf2 ; Symbol Counter Output Compare Register 2 LH-ByteSCOCR2LL sfr 0xf1 ; Symbol Counter Output Compare Register 2 LL-ByteSCOCR3HH sfr 0xf0 ; Symbol Counter Output Compare Register 3 HH-ByteSCOCR3HL sfr 0xef ; Symbol Counter Output Compare Register 3 HL-ByteSCOCR3LH sfr 0xee ; Symbol Counter Output Compare Register 3 LH-ByteSCOCR3LL sfr 0xed ; Symbol Counter Output Compare Register 3 LL-ByteSCCR0 sfr 0xdc ; Symbol Counter Control Register 0SCRES avrbit SCCR0,7 ; Symbol Counter SynchronizationSCMBTS avrbit SCCR0,6 ; Manual Beacon TimestampSCEN avrbit SCCR0,5 ; Symbol Counter EnableSCCKSEL avrbit SCCR0,4 ; Symbol Counter Clock Source SelectSCTSE avrbit SCCR0,3 ; Symbol Counter Automatic Timestamping EnableSCCMP3 avrbit SCCR0,2 ; Symbol Counter Compare Unit 3 Mode SelectSCCMP2 avrbit SCCR0,1 ; Symbol Counter Compare Unit 2 Mode SelectSCCMP1 avrbit SCCR0,0 ; Symbol Counter Compare Unit 1 Mode SelectSCCR1 sfr 0xdd ; Symbol Counter Control Register 1SCBTSM avrbit SCCR1,5 ; Symbol Counter Beacon Timestamp Mask RegisterSCCKDIV2 avrbit SCCR1,4 ; Clock divider for synchronous Clock source (16MHz Transceiver Clock)SCCKDIV1 avrbit SCCR1,3SCCKDIV0 avrbit SCCR1,2SCEECLK avrbit SCCR1,1 ; Enable External Clock Source on PG2SCENBO avrbit SCCR1,0 ; Backoff Slot Counter EnableSCSR sfr 0xde ; Symbol Counter Status RegisterSCBSY avrbit SCSR,0 ; Symbol Counter busySCIRQS sfr 0xe0 ; Symbol Counter Interrupt Status RegisterIRQSBO avrbit SCIRQS,4 ; Backoff Slot Counter IRQIRQSOF avrbit SCIRQS,3 ; Symbol Counter Overflow IRQIRQSCP3 avrbit SCIRQS,2 ; Compare Unit 3 Compare Match IRQIRQSCP2 avrbit SCIRQS,1 ; Compare Unit 2 Compare Match IRQIRQSCP1 avrbit SCIRQS,0 ; Compare Unit 1 Compare Match IRQSCIRQM sfr 0xdf ; Symbol Counter Interrupt Mask RegisterIRQMBO avrbit SCIRQM,4 ; Backoff Slot Counter IRQ EnableIRQMOF avrbit SCIRQM,3 ; Symbol Counter Overflow IRQ EnableIRQMCP3 avrbit SCIRQM,2 ; Symbol Counter Compare Match 3 IRQ EnableIRQMCP2 avrbit SCIRQM,1 ; Symbol Counter Compare Match 2 IRQ EnableIRQMCP1 avrbit SCIRQM,0 ; Symbol Counter Compare Match 1 IRQ Enablerestore ; re-enable listingendif ; __macscinc