Members:
Members:

send(char* data, int len, int addr): void -
sends
size bytes of buffer
receive(char* data, int *len): void - reads up to len data
OrinokoMACController
issue_command(u16 cmd, u16 param0): void
- Issues a cmd command to the chip, using param0 as a parameter
bap_seek(int bap, u16 *fid) - sets up a Buffer Access Point to read a
chunk of data from the card's internal buffer
allocate(u16 size, u16 *fid) - allocates a frame to send or receive data
bap_read(int bap, void *buf, int len, u16 id, u16 offset) reads a
block of data from the chip's buffer, via the BAP
bap_write(int bap, void *buf, int len, u16 id, u16 offset) writes
a block of data from the chip's buffer, via the BAP