Modules | |
Feature definitions | |
Connections of the AT86RFX transceiver | |
#define | AT86RFX_SPI &SPIC |
#define | AT86RFX_RST_PIN IOPORT_CREATE_PIN(PORTC, 0) |
#define | AT86RFX_MISC_PIN IOPORT_CREATE_PIN(PORTC, 1) |
#define | AT86RFX_IRQ_PIN IOPORT_CREATE_PIN(PORTC, 2) |
#define | AT86RFX_SLP_PIN IOPORT_CREATE_PIN(PORTC, 3) |
#define | AT86RFX_SPI_CS IOPORT_CREATE_PIN(PORTC, 4) |
#define | AT86RFX_SPI_MOSI IOPORT_CREATE_PIN(PORTC, 5) |
#define | AT86RFX_SPI_MISO IOPORT_CREATE_PIN(PORTC, 6) |
#define | AT86RFX_SPI_SCK IOPORT_CREATE_PIN(PORTC, 7) |
#define | AT86RFX_INTC_INIT() |
#define | AT86RFX_ISR() ISR(PORTC_INT0_vect) |
#define | ENABLE_TRX_IRQ() (PORTC.INTCTRL |= PORT_INT0LVL_gm) |
Enables the transceiver main interrupt. More... | |
#define | DISABLE_TRX_IRQ() (PORTC.INTCTRL &= ~PORT_INT0LVL_gm) |
Disables the transceiver main interrupt. More... | |
#define | CLEAR_TRX_IRQ() (PORTC.INTFLAGS = PORT_INT0IF_bm) |
Clears the transceiver main interrupt. More... | |
#define | ENTER_TRX_REGION() { uint8_t irq_mask = PORTC.INTCTRL; PORTC.INTCTRL &= ~PORT_INT0LVL_gm |
#define | LEAVE_TRX_REGION() PORTC.INTCTRL = irq_mask; } |
#define AT86RFX_INTC_INIT | ( | ) |
Referenced by trx_spi_init().
#define AT86RFX_IRQ_PIN IOPORT_CREATE_PIN(PORTC, 2) |
Referenced by trx_spi_init().
#define AT86RFX_ISR | ( | ) | ISR(PORTC_INT0_vect) |
Referenced by trx_spi_init().
#define AT86RFX_MISC_PIN IOPORT_CREATE_PIN(PORTC, 1) |
#define AT86RFX_RST_PIN IOPORT_CREATE_PIN(PORTC, 0) |
Referenced by board_init().
#define AT86RFX_SLP_PIN IOPORT_CREATE_PIN(PORTC, 3) |
Referenced by board_init().
#define AT86RFX_SPI &SPIC |
Referenced by trx_aes_wrrd(), trx_frame_read(), trx_frame_write(), trx_reg_read(), trx_reg_write(), trx_spi_init(), trx_sram_read(), and trx_sram_write().
#define AT86RFX_SPI_CS IOPORT_CREATE_PIN(PORTC, 4) |
Referenced by board_init(), and trx_spi_init().
#define AT86RFX_SPI_MISO IOPORT_CREATE_PIN(PORTC, 6) |
Referenced by board_init().
#define AT86RFX_SPI_MOSI IOPORT_CREATE_PIN(PORTC, 5) |
Referenced by board_init().
#define AT86RFX_SPI_SCK IOPORT_CREATE_PIN(PORTC, 7) |
Referenced by board_init().
#define CLEAR_TRX_IRQ | ( | ) | (PORTC.INTFLAGS = PORT_INT0IF_bm) |
Clears the transceiver main interrupt.
#define DISABLE_TRX_IRQ | ( | ) | (PORTC.INTCTRL &= ~PORT_INT0LVL_gm) |
Disables the transceiver main interrupt.
#define ENABLE_TRX_IRQ | ( | ) | (PORTC.INTCTRL |= PORT_INT0LVL_gm) |
Enables the transceiver main interrupt.
#define ENTER_TRX_REGION | ( | ) | { uint8_t irq_mask = PORTC.INTCTRL; PORTC.INTCTRL &= ~PORT_INT0LVL_gm |
Referenced by tal_generate_rand_seed(), and trx_aes_wrrd().
#define LEAVE_TRX_REGION | ( | ) | PORTC.INTCTRL = irq_mask; } |
Referenced by tal_generate_rand_seed(), and trx_aes_wrrd().