AP05/uart_utils/read_utils.h

28 lines
1.1 KiB
C
Raw Permalink Normal View History

2025-04-06 06:41:47 +00:00
#ifndef __READ_UTILS_H__
#define __READ_UTILS_H__
#ifdef __cplusplus
extern "C" {
#endif
/*************************************************************
*
**************************************************************/
int read_data_until_time(int fd, char *buffer, int len, int timeout_first, int timeout_interval);
/*************************************************************
*
**************************************************************/
int read_data_until_char(int fd, char *buffer, int len, char until, int timeout_first, int timeout_interval);
/*************************************************************
*
**************************************************************/
int read_data_until_str(int fd, char *buffer, int len, char *until, int until_len, int timeout_first, int timeout_interval);
#ifdef __cplusplus
}
#endif
#endif