7 struct aura_node *n =
aura_open(
"simpleusb",
"simpleusbconfigs/phototurntable.conf");
15 ret =
aura_call(n,
"turnTheLedOn", &retbuf, 0x1);
16 slog(0, SLOG_DEBUG,
"call ret %d", ret);
18 printf(
"====> buf pos %d len %d\n", retbuf->
pos, retbuf->
size);
21 printf(
"====> GOT %d from device\n", ret);
void aura_wait_status(struct aura_node *node, int status)
int aura_call(struct aura_node *node, const char *name, struct aura_buffer **retbuf,...)
uint8_t aura_buffer_get_u8(struct aura_buffer *buf)
Get an unsigned 8 bit integer from aura buffer.
struct aura_node * aura_open(const char *name, const char *opts)
void aura_buffer_release(struct aura_buffer *buf)
void aura_close(struct aura_node *node)