read_timeout.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2016 Kaspar Schleiser <kaspar@schleiser.de>
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
21 #include "isrpipe.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
43 int isrpipe_read_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count, uint32_t timeout);
44 
65 int isrpipe_read_all_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count, uint32_t timeout);
66 
67 #ifdef __cplusplus
68 }
69 #endif
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:33