10 struct aura_node *n =
aura_open(
"simpleusb",
"../simpleusbconfigs/susb-test.conf");
25 ret =
aura_call(n,
"write", &retbuf, 0xa, 0xb, a, b);
32 ret =
aura_call(n,
"read", &retbuf, 0x0, 0x0);
40 slog(0, SLOG_ERROR,
"%x != %x", tmp, a);
48 slog(0, SLOG_ERROR,
"%x != %x", tmp, b);
60 printf(
"Stability test (data io): %d succeeded, %d failed total %d\n",
61 passed, failed, passed + failed);
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)