Loading...
Searching...
No Matches
read_timeout.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Kaspar Schleiser <kaspar@schleiser.de>
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
22#ifndef ISRPIPE_READ_TIMEOUT_H
23#define ISRPIPE_READ_TIMEOUT_H
24
25#include "isrpipe.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
47int isrpipe_read_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count, uint32_t timeout);
48
63int isrpipe_read_all_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count, uint32_t timeout);
64
65#ifdef __cplusplus
66}
67#endif
69#endif /* ISRPIPE_READ_TIMEOUT_H */
int isrpipe_read_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count, uint32_t timeout)
Read data from isrpipe (with timeout, blocking)
int isrpipe_read_all_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count, uint32_t timeout)
Read data from isrpipe (with timeout, blocking, wait until all read)
isrpipe Interface
Context structure for isrpipe.
Definition isrpipe.h:37