~ruther/CTU-FEE-B0B35APO-Semestral-project

ref: 9f289a5b08da302d4c1a65c2fade4461ae9e848c CTU-FEE-B0B35APO-Semestral-project/lib-pheripherals/include/nonblocking_io.h -rw-r--r-- 426 bytes
9f289a5b — František Boháček feat: turn on red led on error 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _NONBLOCKING_IO_H
#define _NONBLOCKING_IO_H

#include <stdbool.h>
#include <stdint.h>
#include <unistd.h>
#include <termios.h>

int file_set_nonblocking(int file, struct termios *old);
int file_set_blocking(int file, struct termios *old);
int file_read_nonblocking(int file, size_t max_size, uint8_t *data);
bool file_write_nonblocking(int file, size_t size, uint8_t *data, int max_delay);

#endif //_NONBLOCKING_IO_H
Do not follow this link