Defined Constants and Types for the LPC43xx Synchronous Serial Port
More...
|
enum | ssp_num_t { SSP0_NUM = 0x0
, SSP1_NUM = 0x1
} |
|
enum | ssp_datasize_t {
SSP_DATA_4BITS = 0x3
, SSP_DATA_5BITS = 0x4
, SSP_DATA_6BITS = 0x5
, SSP_DATA_7BITS = 0x6
,
SSP_DATA_8BITS = 0x7
, SSP_DATA_9BITS = 0x8
, SSP_DATA_10BITS = 0x9
, SSP_DATA_11BITS = 0xA
,
SSP_DATA_12BITS = 0xB
, SSP_DATA_13BITS = 0xC
, SSP_DATA_14BITS = 0xD
, SSP_DATA_15BITS = 0xE
,
SSP_DATA_16BITS = 0xF
} |
|
enum | ssp_frame_format_t { SSP_FRAME_SPI = 0x00
, SSP_FRAME_TI = BIT4
, SSP_FRAM_MICROWIRE = BIT5
} |
|
enum | ssp_cpol_cpha_t { SSP_CPOL_0_CPHA_0 = 0x0
, SSP_CPOL_1_CPHA_0 = BIT6
, SSP_CPOL_0_CPHA_1 = BIT7
, SSP_CPOL_1_CPHA_1 = (BIT6|BIT7)
} |
|
enum | ssp_mode_t { SSP_MODE_NORMAL = 0x0
, SSP_MODE_LOOPBACK = BIT0
} |
|
enum | ssp_master_slave_t { SSP_MASTER = 0x0
, SSP_SLAVE = BIT2
} |
|
enum | ssp_slave_option_t { SSP_SLAVE_OUT_ENABLE = 0x0
, SSP_SLAVE_OUT_DISABLE = BIT3
} |
|
Defined Constants and Types for the LPC43xx Synchronous Serial Port
- Version
- 1.0.0
- Author
- © 2012 Michael Ossmann mike@.nosp@m.ossm.nosp@m.ann.c.nosp@m.om
- Date
- 10 March 2013
LGPL License Terms libopencm3 License
◆ SSP0
Definition at line 46 of file ssp.h.
◆ SSP0_CPSR
Definition at line 80 of file ssp.h.
◆ SSP0_CR0
Definition at line 54 of file ssp.h.
◆ SSP0_CR1
Definition at line 59 of file ssp.h.
◆ SSP0_DMACR
◆ SSP0_DR
Definition at line 64 of file ssp.h.
◆ SSP0_ICR
◆ SSP0_IMSC
Definition at line 85 of file ssp.h.
◆ SSP0_MIS
Definition at line 95 of file ssp.h.
◆ SSP0_RIS
Definition at line 90 of file ssp.h.
◆ SSP0_SR
Definition at line 69 of file ssp.h.
◆ SSP1
Definition at line 47 of file ssp.h.
◆ SSP1_CPSR
Definition at line 81 of file ssp.h.
◆ SSP1_CR0
Definition at line 55 of file ssp.h.
◆ SSP1_CR1
Definition at line 60 of file ssp.h.
◆ SSP1_DMACR
◆ SSP1_DR
Definition at line 65 of file ssp.h.
◆ SSP1_ICR
◆ SSP1_IMSC
Definition at line 86 of file ssp.h.
◆ SSP1_MIS
Definition at line 96 of file ssp.h.
◆ SSP1_RIS
Definition at line 91 of file ssp.h.
◆ SSP1_SR
Definition at line 70 of file ssp.h.
◆ SSP_CPSR
#define SSP_CPSR |
( |
|
port | ) |
MMIO32((port) + 0x010) |
Definition at line 79 of file ssp.h.
◆ SSP_CR0
#define SSP_CR0 |
( |
|
port | ) |
MMIO32((port) + 0x000) |
Definition at line 53 of file ssp.h.
◆ SSP_CR1
#define SSP_CR1 |
( |
|
port | ) |
MMIO32((port) + 0x004) |
Definition at line 58 of file ssp.h.
◆ SSP_DMACR
#define SSP_DMACR |
( |
|
port | ) |
MMIO32((port) + 0x024) |
◆ SSP_DMACR_RXDMAE
#define SSP_DMACR_RXDMAE 0x1 |
◆ SSP_DMACR_TXDMAE
#define SSP_DMACR_TXDMAE 0x2 |
◆ SSP_DR
#define SSP_DR |
( |
|
port | ) |
MMIO32((port) + 0x008) |
Definition at line 63 of file ssp.h.
◆ SSP_ENABLE
◆ SSP_ICR
#define SSP_ICR |
( |
|
port | ) |
MMIO32((port) + 0x020) |
Definition at line 99 of file ssp.h.
◆ SSP_IMSC
#define SSP_IMSC |
( |
|
port | ) |
MMIO32((port) + 0x014) |
Definition at line 84 of file ssp.h.
◆ SSP_MIS
#define SSP_MIS |
( |
|
port | ) |
MMIO32((port) + 0x01C) |
Definition at line 94 of file ssp.h.
◆ SSP_RIS
#define SSP_RIS |
( |
|
port | ) |
MMIO32((port) + 0x018) |
Definition at line 89 of file ssp.h.
◆ SSP_SR
#define SSP_SR |
( |
|
port | ) |
MMIO32((port) + 0x00C) |
Definition at line 68 of file ssp.h.
◆ SSP_SR_BSY
Definition at line 76 of file ssp.h.
◆ SSP_SR_RFF
Definition at line 75 of file ssp.h.
◆ SSP_SR_RNE
Definition at line 74 of file ssp.h.
◆ SSP_SR_TFE
Definition at line 72 of file ssp.h.
◆ SSP_SR_TNF
Definition at line 73 of file ssp.h.
◆ ssp_cpol_cpha_t
Enumerator |
---|
SSP_CPOL_0_CPHA_0 | |
SSP_CPOL_1_CPHA_0 | |
SSP_CPOL_0_CPHA_1 | |
SSP_CPOL_1_CPHA_1 | |
Definition at line 147 of file ssp.h.
◆ ssp_datasize_t
Enumerator |
---|
SSP_DATA_4BITS | |
SSP_DATA_5BITS | |
SSP_DATA_6BITS | |
SSP_DATA_7BITS | |
SSP_DATA_8BITS | |
SSP_DATA_9BITS | |
SSP_DATA_10BITS | |
SSP_DATA_11BITS | |
SSP_DATA_12BITS | |
SSP_DATA_13BITS | |
SSP_DATA_14BITS | |
SSP_DATA_15BITS | |
SSP_DATA_16BITS | |
Definition at line 123 of file ssp.h.
◆ ssp_frame_format_t
Enumerator |
---|
SSP_FRAME_SPI | |
SSP_FRAME_TI | |
SSP_FRAM_MICROWIRE | |
Definition at line 140 of file ssp.h.
◆ ssp_master_slave_t
Enumerator |
---|
SSP_MASTER | |
SSP_SLAVE | |
Definition at line 167 of file ssp.h.
◆ ssp_mode_t
Enumerator |
---|
SSP_MODE_NORMAL | |
SSP_MODE_LOOPBACK | |
Definition at line 158 of file ssp.h.
◆ ssp_num_t
Enumerator |
---|
SSP0_NUM | |
SSP1_NUM | |
Definition at line 114 of file ssp.h.
◆ ssp_slave_option_t
Enumerator |
---|
SSP_SLAVE_OUT_ENABLE | |
SSP_SLAVE_OUT_DISABLE | |
Definition at line 178 of file ssp.h.
◆ ssp_disable()
◆ ssp_init()
◆ ssp_transfer()
uint16_t ssp_transfer |
( |
ssp_num_t |
ssp_num, |
|
|
uint16_t |
data |
|
) |
| |