Loading...
Searching...
No Matches
event.h
1/*
2 * Copyright (C) 2022 HAW Hamburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser General
5 * Public License v2.1. See the file LICENSE in the top level directory for more
6 * details.
7 */
8
19#ifndef BHP_EVENT_H
20#define BHP_EVENT_H
21
22#include "bhp.h"
23#include <event.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
37
46void bhp_event_init(bhp_event_t *bhp_ev, event_queue_t *evq, bhp_cb_t cb, void *ctx);
47
55void bhp_event_isr_cb(void *bhp_event_ctx);
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* BHP_EVENT_H */
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:46
Asynchronous sock using Event Queue definitions.
event queue structure
Definition event.h:156
Event based Bottom Half Processor descriptor.
Definition event.h:32
bhp_t bhp
Bottom Half Processor descriptor.
Definition event.h:33
event_queue_t * evq
Pointer to the event queue.
Definition event.h:34
event_t ev
Event holding the Bottom Half Processor handler.
Definition event.h:35
Bottom Half Processor descriptor.
Definition bhp.h:51
event structure
Definition event.h:148