Loading...
Searching...
No Matches
Event based implementation of Bottom Half Processor

Bottom Half Processor module for generic IRQ offloading. More...

Detailed Description

Bottom Half Processor module for generic IRQ offloading.

Author
José I. Alamos jose..nosp@m.alam.nosp@m.os@ha.nosp@m.w-ha.nosp@m.mburg.nosp@m..de

Data Structures

struct  bhp_event_t
 Event based Bottom Half Processor descriptor. More...
 

Functions

void bhp_event_init (bhp_event_t *bhp_ev, event_queue_t *evq, bhp_cb_t cb, void *ctx)
 Init a Bottom Half Processor to be used with events.
 
void bhp_event_isr_cb (void *bhp_event_ctx)
 Event based Bottom Half Processor ISR callback To be called from ISR in order to trigger the Bottom Half Processor.
 

Function Documentation

◆ bhp_event_init()

void bhp_event_init ( bhp_event_t bhp_ev,
event_queue_t evq,
bhp_cb_t  cb,
void *  ctx 
)

Init a Bottom Half Processor to be used with events.

Parameters
[in]bhp_evThe Event based Bottom Half Processor descriptor
[in]evqThe target event queue to process the Bottom Half Processor
[in]cbBottom Half Processor callback
[in]ctxContext of cb

◆ bhp_event_isr_cb()

void bhp_event_isr_cb ( void *  bhp_event_ctx)

Event based Bottom Half Processor ISR callback To be called from ISR in order to trigger the Bottom Half Processor.

Parameters
[in]bhp_event_ctxContext (bhp_event_t) of the event based Bottom Half Processor.