SPI master with EasyDMA of the nRF54L.
More...
|
| #define | PBL_SPI_NRF54L_DEFINE(sym, _name, _base, _irq, _clock_hz, _max_hz, _sck, _mosi, _miso, ...) |
| | Define a SPIM instance.
|
| |
SPI master with EasyDMA of the nRF54L.
◆ pbl_spi_nrf54l
| Data Fields |
|
uintptr_t |
base |
Registers. |
|
struct pbl_spi_bus |
bus |
SPI bus. |
|
uint32_t |
clock_hz |
Core clock, which the prescaler divides, in Hz. |
|
pbl_irq_t |
irq |
Interrupt line. |
|
uint32_t |
max_hz |
Highest SCK frequency, in Hz. |
|
struct pbl_gpio |
miso |
MISO pin, or unconnected. |
|
struct pbl_gpio |
mosi |
MOSI pin, or unconnected. |
|
struct pbl_gpio |
sck |
SCK pin. |
◆ PBL_SPI_NRF54L_DEFINE
| #define PBL_SPI_NRF54L_DEFINE |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_base, |
|
|
|
_irq, |
|
|
|
_clock_hz, |
|
|
|
_max_hz, |
|
|
|
_sck, |
|
|
|
_mosi, |
|
|
|
_miso, |
|
|
|
... |
|
) |
| |
Value:
.base = (_base), \
.irq = (_irq), \
.clock_hz = (_clock_hz), \
.max_hz = (_max_hz), \
.sck = _sck, \
.mosi = _mosi, \
.miso = _miso, \
}; \
PBL_IRQ_CONNECT_NUM(_irq, CONFIG_SPI_NRF54L_IRQ_PRIO, pbl_spi_nrf54l_irq_handler, &sym##_inst, 0)
SPIM instance.
Definition nrf54l.h:20
An SPI controller.
Definition spi.h:140
#define PBL_SPI_BUS_STATE_DEFINE(sym,...)
Define the class state of bus sym, for the PBL_SPI_*_DEFINE() macro of a driver.
Definition spi.h:182
#define PBL_SPI_BUS_INIT(sym, _name, _parent, _ops)
Initializer for the struct pbl_spi_bus of bus sym.
Definition spi.h:195
Define a SPIM instance.
- Parameters
-
| sym | Symbol of the device. |
| _name | Name. |
| _base | Registers. |
| _irq | Interrupt line. |
| _clock_hz | Core clock, in Hz. |
| _max_hz | Highest SCK frequency, in Hz. |
| _sck | SCK pin, from PBL_GPIO(). |
| _mosi | MOSI pin, from PBL_GPIO(). |
| _miso | MISO pin, from PBL_GPIO(). |
| ... | Chip select pins, from PBL_GPIO(). |