40 #ifndef ti_dpl_SwiP__include 41 #define ti_dpl_SwiP__include 60 #define SwiP_STRUCT_SIZE (60) 93 typedef void (*
SwiP_Fxn)(uintptr_t arg0, uintptr_t arg1);
205 extern void SwiP_andn(SwiP_Handle handle, uint32_t mask);
212 extern void SwiP_dec(SwiP_Handle handle);
219 extern void SwiP_inc(SwiP_Handle handle);
236 extern void SwiP_or(SwiP_Handle handle, uint32_t mask);
243 extern void SwiP_post(SwiP_Handle handle);
ADC_Params params
Definition: Driver_Init.h:11
SwiP_Status
Status codes for SwiP APIs.
Definition: SwiP.h:84
void * SwiP_Handle
Opaque client reference to an instance of a SwiP.
Definition: SwiP.h:79
void SwiP_delete(SwiP_Handle handle)
Function to delete a software interrupt object.
void SwiP_dec(SwiP_Handle handle)
Decrement SwiP's trigger value. Post SwiP if trigger becomes 0.
uintptr_t arg0
Definition: SwiP.h:115
SwiP_Handle SwiP_create(SwiP_Fxn swiFxn, SwiP_Params *params)
Function to create a software interrupt object.
Basic SwiP Parameters.
Definition: SwiP.h:113
void SwiP_destruct(SwiP_Struct *swiP)
Function to destruct a software interrupt object.
void(* SwiP_Fxn)(uintptr_t arg0, uintptr_t arg1)
Prototype for the entry function for a hardware interrupt.
Definition: SwiP.h:93
#define SwiP_STRUCT_SIZE
Number of bytes greater than or equal to the size of any RTOS SwiP object.
Definition: SwiP.h:60
uint8_t data[(60)]
Definition: SwiP.h:71
uint32_t dummy
Definition: SwiP.h:70
void SwiP_Params_init(SwiP_Params *params)
Initialize params structure to default values.
uint32_t trigger
Definition: SwiP.h:118
SwiP_Handle SwiP_construct(SwiP_Struct *swiP, SwiP_Fxn swiFxn, SwiP_Params *params)
Function to construct a software interrupt object.
bool SwiP_inISR(void)
Function to return a status based on whether it is in a software interrupt context.
uintptr_t SwiP_disable(void)
Function to disable software interrupts.
uint32_t SwiP_getTrigger(void)
Function to get the trigger value of the currently running SwiP.
uintptr_t arg1
Definition: SwiP.h:116
void SwiP_inc(SwiP_Handle handle)
Increment the SwiP's trigger value and post the SwiP.
void SwiP_andn(SwiP_Handle handle, uint32_t mask)
Clear bits in SwiP's trigger. Post SwiP if trigger becomes 0.
void SwiP_setPriority(SwiP_Handle handle, uint32_t priority)
Function to set the priority of a software interrupt.
uint32_t priority
Definition: SwiP.h:117
void SwiP_restore(uintptr_t key)
Function to restore software interrupts.
void SwiP_or(SwiP_Handle handle, uint32_t mask)
Or the mask with the SwiP's trigger value and post the SwiP.
union SwiP_Struct SwiP_Struct
SemaphoreP structure.
SemaphoreP structure.
Definition: SwiP.h:68
void SwiP_post(SwiP_Handle handle)
Unconditionally post a software interrupt.