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 
9 #pragma once
10 
24 #include "isrpipe.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
46 int isrpipe_read_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count, uint32_t timeout);
47 
68 int isrpipe_read_all_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count, uint32_t timeout);
69 
70 #ifdef __cplusplus
71 }
72 #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:36