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
28 extern "C" {
29 #endif
30 
47 int isrpipe_read_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count, uint32_t timeout);
48 
63 int isrpipe_read_all_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count, uint32_t timeout);
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif /* ISRPIPE_READ_TIMEOUT_H */
isrpipe_read_timeout
int isrpipe_read_timeout(isrpipe_t *isrpipe, uint8_t *buf, size_t count, uint32_t timeout)
Read data from isrpipe (with timeout, blocking)
isrpipe.h
isrpipe Interface
isrpipe_read_all_timeout
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_t
Context structure for isrpipe.
Definition: isrpipe.h:37