event.h
1 /*
2  * SPDX-FileCopyrightText: 2022 HAW Hamburg
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #include "bhp.h"
19 #include <event.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
28 typedef struct {
32 } bhp_event_t;
33 
42 void bhp_event_init(bhp_event_t *bhp_ev, event_queue_t *evq, bhp_cb_t cb, void *ctx);
43 
51 void bhp_event_isr_cb(void *bhp_event_ctx);
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
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 H...
void(* bhp_cb_t)(void *arg)
A Bottom Half Processor callback.
Definition: bhp.h:42
Asynchronous sock using Event Queue definitions.
event queue structure
Definition: event.h:150
Event based Bottom Half Processor descriptor.
Definition: event.h:28
bhp_t bhp
Bottom Half Processor descriptor.
Definition: event.h:29
event_queue_t * evq
Pointer to the event queue.
Definition: event.h:30
event_t ev
Event holding the Bottom Half Processor handler.
Definition: event.h:31
Bottom Half Processor descriptor.
Definition: bhp.h:47
event structure
Definition: event.h:142