v2.0.0
async_context_poll.h
1/*
2 * Copyright (c) 2022 Raspberry Pi (Trading) Ltd.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef _PICO_ASYNC_CONTEXT_POLL_H
8#define _PICO_ASYNC_CONTEXT_POLL_H
9
21#include "pico/async_context.h"
22#include "pico/sem.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28 typedef struct async_context_poll {
29 async_context_t core;
30 semaphore_t sem;
31} async_context_poll_t;
32
43bool async_context_poll_init_with_defaults(async_context_poll_t *self);
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif
async_context.h
async_context_poll_init_with_defaults
bool async_context_poll_init_with_defaults(async_context_poll_t *self)
Initialize an async_context_poll instance with default values.
Definition: async_context_poll.c:16
sem.h
async_context_poll
Definition: async_context_poll.h:28
async_context
Base structure type of all async_contexts. For details about its use, see pico_async_context.
Definition: async_context.h:179
semaphore
Definition: sem.h:31