pic24_spi.h File Reference
Go to the source code of this file.
|
Defines |
#define | DISABLE_SCK_PIN 0x1000 |
#define | ENABLE_SCK_PIN 0x0000 |
#define | SCK_PIN_MASK (~DISABLE_SCK_PIN) |
#define | DISABLE_SDO_PIN 0x0800 |
#define | ENABLE_SDO_PIN 0x0000 |
#define | SDO_PIN_MASK (~DISABLE_SDO_PIN) |
#define | SPI_MODE16_ON 0x0400 |
#define | SPI_MODE8_ON 0x0000 |
#define | SPI_MODE_MASK (~SPI_MODE16_ON) |
#define | SPI_SMP_ON 0x0200 |
#define | SPI_SMP_OFF 0x0000 |
#define | SPI_SMP_MASK (~SPI_SMP_ON) |
#define | SPI_CKE_ON 0x0100 |
#define | SPI_CKE_OFF 0x0000 |
#define | SPI_CKE_MASK (~SPI_CKE_ON) |
#define | SLAVE_ENABLE_ON 0x0080 |
#define | SLAVE_ENABLE_OFF 0x0000 |
#define | SLAVE_ENABLE_MASK (~SLAVE_ENABLE_ON) |
#define | CLK_POL_ACTIVE_LOW 0x0040 |
#define | CLK_POL_ACTIVE_HIGH 0x0000 |
#define | CLK_POL_ACTIVE_MASK (~CLK_POL_ACTIVE_LOW) |
#define | MASTER_ENABLE_ON 0x0020 |
#define | MASTER_ENABLE_OFF 0x0000 |
#define | MASTER_ENABLE_MASK (~MASTER_ENABLE_ON) |
#define | SEC_PRESCAL_1_1 0x001c |
#define | SEC_PRESCAL_2_1 0x0018 |
#define | SEC_PRESCAL_3_1 0x0014 |
#define | SEC_PRESCAL_4_1 0x0010 |
#define | SEC_PRESCAL_5_1 0x000c |
#define | SEC_PRESCAL_6_1 0x0008 |
#define | SEC_PRESCAL_7_1 0x0004 |
#define | SEC_PRESCAL_8_1 0x0000 |
#define | SEC_PRESCAL_MASK (~SEC_PRESCAL_1_1) |
#define | PRI_PRESCAL_1_1 0x0003 |
#define | PRI_PRESCAL_4_1 0x0002 |
#define | PRI_PRESCAL_16_1 0x0001 |
#define | PRI_PRESCAL_64_1 0x0000 |
#define | PRI_PRESCAL_MASK (~PRI_PRESCAL_1_1) |
#define | SPI_ENABLE 0x8000 |
#define | SPI_DISABLE 0x0000 |
#define | SPI_ENBL_DSBL_MASK (~SPI_ENABLE) |
#define | SPI_IDLE_STOP 0x2000 |
#define | SPI_IDLE_CON 0x0000 |
#define | SPI_IDLE_MASK (~SPI_IDLE_STOP) |
#define | SPI_RX_OVFLOW 0x0040 |
#define | SPI_RX_OVFLOW_CLR 0x0000 |
#define | FRAME_ENABLE_ON 0x8000 |
#define | FRAME_ENABLE_OFF 0x0000 |
#define | FRAME_ENABLE_MASK (~FRAME_ENABLE_ON) |
#define | FRAME_SYNC_INPUT 0x4000 |
#define | FRAME_SYNC_OUTPUT 0x0000 |
#define | FRAME_SYNC_MASK (~FRAME_SYNC_INPUT) |
#define | FRAME_SYNC_ACTIVE_HIGH 0x2000 |
#define | FRAME_SYNC_ACTIVE_LOW 0x0000 |
#define | FRAME_SYNC_POL_MASK (~FRAME_SYNC_ACTIVE_HIGH) |
#define | SPI_FRM_PULSE_FIRST_CLK 0x0002 |
#define | SPI_FRM_PULSE_PREV_CLK 0x0000 |
#define | SPI_FRM_PULSE_MASK (~SPI_FRM_PULSE_FIRST_CLK) |
#define | SPI_ENH_BUFF_ENABLE 0x0001 |
#define | SPI_ENH_BUFF_DISABLE 0x0000 |
#define | SPI_ENH_BUFF_MASK (~SPI_ENH_BUFF_ENABLE) |
Detailed Description
SPI module support functions.
Definition in file pic24_spi.h.