7 struct aura_node *n =
aura_open(
"simpleusb",
"../simpleusbconfigs/susb-test.conf");
17 ret =
aura_call(n,
"led_ctl", &retbuf, 0x100, 0x100);
18 slog(0, SLOG_DEBUG,
"call ret %d", ret);
27 ret =
aura_call(n,
"write", &retbuf, 0xa, 0xb, a, b);
28 slog(0, SLOG_DEBUG,
"call ret %d", ret);
34 ret =
aura_call(n,
"read", &retbuf, 0x0, 0x0);
35 slog(0, SLOG_DEBUG,
"call ret %d", ret);
39 aura_hexdump(
"buffer", retbuf->
data, retbuf->
size);
40 slog(0, SLOG_INFO,
"a=%x b= %x", a, b);
43 slog(0, SLOG_ERROR,
"%x != %x", tmp, a);
49 slog(0, SLOG_ERROR,
"%x != %x", tmp, b);
void aura_wait_status(struct aura_node *node, int status)
uint32_t aura_buffer_get_u32(struct aura_buffer *buf)
Get an unsigned 32 bit integer from aura buffer.
int aura_call(struct aura_node *node, const char *name, struct aura_buffer **retbuf,...)
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)