17 void *
bt_open(
const char *file_in,
const char *file_out);
28 int bt_write(
void* device,
const u8* buf,
size_t count);
40 int bt_read(
void* device,
u8* buf,
size_t count,
int milliseconds);
55 const wchar_t *
bt_error(
void* device);
void bt_close(void *)
Closes the resource opened by bt_open.
void * bt_open(const char *file_in, const char *file_out)
open a bluetooth device described by device. NULL leads to default action
const wchar_t * bt_error(void *device)
Returns an error string describing the last error occured.
int bt_read(void *device, u8 *buf, size_t count, int milliseconds)
writes buf[1] till buf[count - 2] to device
int bt_write(void *device, const u8 *buf, size_t count)
writes buf[1] till buf[count - 2] to device