50 #ifndef ti_dpl_HwiP__include 51 #define ti_dpl_HwiP__include 70 #define HwiP_STRUCT_SIZE (28) 273 extern void HwiP_plug(
int interruptNum,
void *fxn);
void HwiP_enable(void)
Function to enable interrupts.
bool enableInt
Definition: HwiP.h:121
uint32_t priority
Definition: HwiP.h:120
ADC_Params params
Definition: Driver_Init.h:11
void HwiP_dispatchInterrupt(int interruptNum)
Function to call the HW ISR function registered by HwiP_construct.
uintptr_t HwiP_disable(void)
Function to disable interrupts to enter a critical region.
HwiP structure.
Definition: HwiP.h:78
void HwiP_destruct(HwiP_Struct *hwiP)
Function to destruct a hardware interrupt object.
void HwiP_enableInterrupt(int interruptNum)
Function to enable a single interrupt.
union HwiP_Struct HwiP_Struct
HwiP structure.
uint32_t dummy
Definition: HwiP.h:80
bool HwiP_inISR(void)
Function to return a status based on whether it is in an interrupt context.
void HwiP_plug(int interruptNum, void *fxn)
Function to plug an interrupt vector.
bool HwiP_interruptsEnabled(void)
Function to determine whether interrupts are currently enabled.
HwiP_Handle HwiP_create(int interruptNum, HwiP_Fxn hwiFxn, HwiP_Params *params)
Function to create an interrupt on CortexM devices.
void HwiP_post(int interruptNum)
Function to generate an interrupt.
void HwiP_setPriority(int interruptNum, uint32_t priority)
Function to set the priority of a hardware interrupt.
#define HwiP_STRUCT_SIZE
Number of bytes greater than or equal to the size of any RTOS HwiP object.
Definition: HwiP.h:70
uintptr_t arg
Definition: HwiP.h:119
void HwiP_disableInterrupt(int interruptNum)
Function to disable a single interrupt.
void HwiP_setFunc(HwiP_Handle hwiP, HwiP_Fxn fxn, uintptr_t arg)
Function to overwrite HwiP function and arg.
void HwiP_restore(uintptr_t key)
Function to restore interrupts to exit a critical region.
uint8_t data[(28)]
Definition: HwiP.h:81
void * HwiP_Handle
Opaque client reference to an instance of a HwiP.
Definition: HwiP.h:89
void HwiP_delete(HwiP_Handle handle)
Function to delete an interrupt on CortexM devices.
int HwiP_swiPIntNum
Interrupt number posted by SwiP.
void HwiP_Params_init(HwiP_Params *params)
Initialize params structure to default values.
Basic HwiP Parameters.
Definition: HwiP.h:117
void HwiP_clearInterrupt(int interruptNum)
Function to clear a single interrupt.
HwiP_Status
Status codes for HwiP APIs.
Definition: HwiP.h:94
void(* HwiP_Fxn)(uintptr_t arg)
Prototype for the entry function for a hardware interrupt.
Definition: HwiP.h:103
HwiP_Handle HwiP_construct(HwiP_Struct *hwiP, int interruptNum, HwiP_Fxn hwiFxn, HwiP_Params *params)
Function to construct a hardware interrupt object.