This section describes functions and macros of the driver's API.
#define SWISR_HandlerCall |
( |
|
hnd | ) |
|
This macro calls software interrupt on given priority level. If macro is called from an interrupt routine that executes on the higher interrupt level then the callback function will execute afterwards.
- Parameters
-
hnd | 0,1,2 (interrupt handler). |
- Note
- Implemented as an inline macro.
- See also
- SWISR_HandlerFreqCall, SWISR_HandlerCountCall
#define SWISR_HandlerCountCall |
( |
|
hnd, |
|
|
|
count |
|
) |
| |
This macro calls software interrupt on given priority level every count
period. If macro is called from an interrupt routine that executes on the higher interrupt level then the callback function will execute afterwards.
- Parameters
-
hnd | 0,1,2 (interrupt handler). |
count | Number of counts to skip 0..65535. |
- Note
- Implemented as an inline macro.
- See also
- SWISR_HandlerFreqCall, SWISR_HandlerCall
#define SWISR_HandlerFreqCall |
( |
|
hnd, |
|
|
|
base_task_freq, |
|
|
|
new_task_freq |
|
) |
| |
This macro calls software interrupt on given priority level at relative frequency defined by ratio (base_task_freq
/new_task_freq
). If macro is called from an interrupt routine that executes on the higher interrupt level then the callback function will execute afterwards.
- Parameters
-
hnd | 0,1,2 (interrupt handler). |
base_task_freq | Frequency of base task calling this macro in Hz. |
new_task_freq | Frequency of new task called by the macro in Hz. |
- Note
- Implemented as an inline macro.
- Warning
- Frequency of base task must be integer multiply higher than frequency of new task being called.
- See also
- SWISR_HandlerCountCall, SWISR_HandlerCall
#define SWISR_HandlerInit |
( |
|
hnd, |
|
|
|
ip, |
|
|
|
callback |
|
) |
| |