ev3duder  0.3.0
EV3 Downloader/Uploader
btserial.h
Go to the documentation of this file.
1 
8 #include "defs.h"
9 
17 void *bt_open(const char *file_in, const char *file_out);
18 
28 int bt_write(void* device, const u8* buf, size_t count);
29 
40 int bt_read(void* device, u8* buf, size_t count, int milliseconds);
41 
47  void bt_close(void*);
55 const wchar_t *bt_error(void* device);
56 
void bt_close(void *)
Closes the resource opened by bt_open.
Definition: bt-unix.c:116
void * bt_open(const char *file_in, const char *file_out)
open a bluetooth device described by device. NULL leads to default action
Definition: bt-unix.c:29
const wchar_t * bt_error(void *device)
Returns an error string describing the last error occured.
Definition: bt-unix.c:127
uint8_t u8
Definition: defs.h:9
int bt_read(void *device, u8 *buf, size_t count, int milliseconds)
writes buf[1] till buf[count - 2] to device
Definition: bt-unix.c:77
int bt_write(void *device, const u8 *buf, size_t count)
writes buf[1] till buf[count - 2] to device
Definition: bt-unix.c:51