Hardware access layer for managing the Display Controller (DISPC) peripheral.
More...
|
enum | nrf_dispc_event_t {
NRF_DISPC_EVENT_CORE = offsetof(NRF_DISPC_Type, EVENTS_CORE)
,
NRF_DISPC_EVENT_UNDERRUN = offsetof(NRF_DISPC_Type, EVENTS_UNDERRUN)
,
NRF_DISPC_EVENT_LOW_BUFFER = offsetof(NRF_DISPC_Type, EVENTS_LOWBUFFER)
,
NRF_DISPC_EVENT_STARTED = offsetof(NRF_DISPC_Type, EVENTS_STARTED)
} |
| DISPC events. More...
|
|
enum | nrf_dispc_int_mask_t {
NRF_DISPC_INT_CORE_MASK = DISPC_INTEN_CORE_Msk
,
NRF_DISPC_INT_UNDERRUN_MASK = DISPC_INTEN_UNDERRUN_Msk
,
NRF_DISPC_INT_LOW_BUFFER_MASK = DISPC_INTEN_LOWBUFFER_Msk
,
NRF_DISPC_INT_STARTED_MASK = DISPC_INTEN_STARTED_Msk
} |
| DISPC interrupts. More...
|
|
|
NRF_STATIC_INLINE void | nrf_dispc_event_clear (NRF_DISPC_Type *p_reg, nrf_dispc_event_t event) |
| Function for clearing the specified DISPC event.
|
|
NRF_STATIC_INLINE bool | nrf_dispc_event_check (NRF_DISPC_Type const *p_reg, nrf_dispc_event_t event) |
| Function for retrieving the state of the DISPC event.
|
|
NRF_STATIC_INLINE uint32_t | nrf_dispc_event_address_get (NRF_DISPC_Type const *p_reg, nrf_dispc_event_t event) |
| Function for getting the address of the specified DISPC event register.
|
|
NRF_STATIC_INLINE void | nrf_dispc_int_enable (NRF_DISPC_Type *p_reg, uint32_t mask) |
| Function for enabling specified interrupts.
|
|
NRF_STATIC_INLINE void | nrf_dispc_int_disable (NRF_DISPC_Type *p_reg, uint32_t mask) |
| Function for disabling specified interrupts.
|
|
NRF_STATIC_INLINE bool | nrf_dispc_int_enable_check (NRF_DISPC_Type const *p_reg, uint32_t mask) |
| Function for checking if the specified interrupts are enabled.
|
|
NRF_STATIC_INLINE void | nrf_dispc_enable (NRF_DISPC_Type *p_reg) |
| Function for enabling the DISPC.
|
|
NRF_STATIC_INLINE void | nrf_dispc_disable (NRF_DISPC_Type *p_reg) |
| Function for disabling the DISPC.
|
|
NRF_STATIC_INLINE bool | nrf_dispc_enable_check (NRF_DISPC_Type const *p_reg) |
| Function for checking if the DISPC peripheral is enabled.
|
|
Hardware access layer for managing the Display Controller (DISPC) peripheral.
◆ nrf_dispc_event_t
DISPC events.
Enumerator |
---|
NRF_DISPC_EVENT_CORE | Event indicating that interrupt triggered at DISPC core.
|
NRF_DISPC_EVENT_UNDERRUN | Event indicating that underrun triggered in the DISPC core FIFO
|
NRF_DISPC_EVENT_LOW_BUFFER | Event indicating a low level condition in the DISPC core FIFO
|
NRF_DISPC_EVENT_STARTED | Event indicating that the display controller has been enabled.
|
◆ nrf_dispc_int_mask_t
DISPC interrupts.
Enumerator |
---|
NRF_DISPC_INT_CORE_MASK | DISPC interrupt for CORE event.
|
NRF_DISPC_INT_UNDERRUN_MASK | DISPC interrupt for UNDERRUN event.
|
NRF_DISPC_INT_LOW_BUFFER_MASK | DISPC interrupt for LOWBUFFER event.
|
NRF_DISPC_INT_STARTED_MASK | DISPC interrupt for STARTED event.
|
◆ nrf_dispc_disable()
NRF_STATIC_INLINE void nrf_dispc_disable |
( |
NRF_DISPC_Type * |
p_reg | ) |
|
Function for disabling the DISPC.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
◆ nrf_dispc_enable()
NRF_STATIC_INLINE void nrf_dispc_enable |
( |
NRF_DISPC_Type * |
p_reg | ) |
|
Function for enabling the DISPC.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
◆ nrf_dispc_enable_check()
NRF_STATIC_INLINE bool nrf_dispc_enable_check |
( |
NRF_DISPC_Type const * |
p_reg | ) |
|
Function for checking if the DISPC peripheral is enabled.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
- Return values
-
true | The DISPC peripheral is enabled. |
false | The DISPC peripheral is not enabled. |
◆ nrf_dispc_event_address_get()
NRF_STATIC_INLINE uint32_t nrf_dispc_event_address_get |
( |
NRF_DISPC_Type const * |
p_reg, |
|
|
nrf_dispc_event_t |
event |
|
) |
| |
Function for getting the address of the specified DISPC event register.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | The specified event. |
- Returns
- Address of the specified event register.
◆ nrf_dispc_event_check()
NRF_STATIC_INLINE bool nrf_dispc_event_check |
( |
NRF_DISPC_Type const * |
p_reg, |
|
|
nrf_dispc_event_t |
event |
|
) |
| |
Function for retrieving the state of the DISPC event.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be checked. |
- Return values
-
true | The event has been generated. |
false | The event has not been generated. |
◆ nrf_dispc_event_clear()
NRF_STATIC_INLINE void nrf_dispc_event_clear |
( |
NRF_DISPC_Type * |
p_reg, |
|
|
nrf_dispc_event_t |
event |
|
) |
| |
Function for clearing the specified DISPC event.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be cleared. |
◆ nrf_dispc_int_disable()
NRF_STATIC_INLINE void nrf_dispc_int_disable |
( |
NRF_DISPC_Type * |
p_reg, |
|
|
uint32_t |
mask |
|
) |
| |
Function for disabling specified interrupts.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be disabled. Use nrf_dispc_int_mask_t values for bit masking. |
◆ nrf_dispc_int_enable()
NRF_STATIC_INLINE void nrf_dispc_int_enable |
( |
NRF_DISPC_Type * |
p_reg, |
|
|
uint32_t |
mask |
|
) |
| |
Function for enabling specified interrupts.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be enabled. Use nrf_dispc_int_mask_t values for bit masking. |
◆ nrf_dispc_int_enable_check()
NRF_STATIC_INLINE bool nrf_dispc_int_enable_check |
( |
NRF_DISPC_Type const * |
p_reg, |
|
|
uint32_t |
mask |
|
) |
| |
Function for checking if the specified interrupts are enabled.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be checked. Use nrf_dispc_int_mask_t values for bit masking. |
- Returns
- true requested interrupts are enabled.
-
false requested interrupts are disabled.