![]() |
Contiki-NG
|
Files | |
| file | int-master-arch.c |
| Master interrupt driver implementation for the nrf. | |
Functions | |
| void | int_master_enable (void) |
| Enable the master interrupt. | |
| int_master_status_t | int_master_read_and_disable (void) |
| Disable the master interrupt. | |
| void | int_master_status_set (int_master_status_t status) |
| Set the status of the master interrupt. | |
| bool | int_master_is_enabled (void) |
| Retrieve the status of the master interrupt. | |
| void int_master_enable | ( | void | ) |
Enable the master interrupt.
The platform developer must provide this function
Definition at line 55 of file int-master-arch.c.
| bool int_master_is_enabled | ( | void | ) |
Retrieve the status of the master interrupt.
| false | Interrupts are disabled |
| true | Interrupts are enabled |
This function can be used to retrieve the status of the master interrupt in a platform-independent fashion.
The platform developer must provide this function
Definition at line 77 of file int-master-arch.c.
| int_master_status_t int_master_read_and_disable | ( | void | ) |
Disable the master interrupt.
This function will return the status of the master interrupt as it was before it got disabled.
The semantics of the return value are entirely platform-specific. The calling code should not try to determine whether the master interrupt was previously enabled/disabled by interpreting the return value of this function. The return value should only be used as an argument to int_master_status_set()
To determine the status of the master interrupt in a platform-independent fashion you should use int_master_is_enabled().
The platform developer must provide this function
Definition at line 61 of file int-master-arch.c.
| void int_master_status_set | ( | int_master_status_t | status | ) |
Set the status of the master interrupt.
| status | The new status |
The semantics of status are platform-dependent. Normally, the argument provided to this function will be a value previously retrieved through a call to int_master_read_and_disable()
The platform developer must provide this function
Definition at line 71 of file int-master-arch.c.