Loading...
Searching...
No Matches
event.h
1/*
2 * SPDX-FileCopyrightText: 2022 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "bhp.h"
19#include <event.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
33
42void bhp_event_init(bhp_event_t *bhp_ev, event_queue_t *evq, bhp_cb_t cb, void *ctx);
43
51void 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...
struct bhp bhp_t
Forward declaration of the Bottom Half Processor descriptor.
Definition bhp.h:35
void(* bhp_cb_t)(void *arg)
A Bottom Half Processor callback.
Definition bhp.h:42
struct PTRTAG event_queue_t
event queue structure
struct event event_t
event structure forward declaration
Definition event.h:132
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