Defines | |
| #define | ASEBA_USB_MTU 64 |
Functions | |
| uint16 | AsebaGetBuffer (AsebaVMState *vm, uint8 *data, uint16 maxLength, uint16 *source) |
| void | AsebaSendBuffer (AsebaVMState *vm, const uint8 *data, uint16 length) |
| unsigned char | AsebaTxReady (unsigned char *data) |
| int | AsebaUsbBulkRecv (unsigned char *data, unsigned char size) |
| void | AsebaUsbInit (unsigned char *sendQueue, size_t sendQueueSize, unsigned char *recvQueue, size_t recvQueueSize) |
| int | AsebaUsbRecvBufferEmpty (void) |
| int | AsebaUsbTxBusy (void) |
This transport layer only works on little-endian systems for now, as it does not perform endian correction.
| #define ASEBA_USB_MTU 64 |
The MTU of the underling hardware
Definition at line 40 of file usb-buffer.h.
| uint16 AsebaGetBuffer | ( | AsebaVMState * | vm, |
| uint8 * | data, | ||
| uint16 | maxLength, | ||
| uint16 * | source | ||
| ) |
Definition at line 990 of file challenge.cpp.
| void AsebaSendBuffer | ( | AsebaVMState * | vm, |
| const uint8 * | data, | ||
| uint16 | length | ||
| ) |
Definition at line 969 of file challenge.cpp.
| unsigned char AsebaTxReady | ( | unsigned char * | data | ) |
callback from the usb layer asking for more data put the datas in the pointer and return the size written to send more data return 0 to send nothing
Definition at line 94 of file usb-buffer.c.
| int AsebaUsbBulkRecv | ( | unsigned char * | data, |
| unsigned char | size | ||
| ) |
callback from the usb layer, data is a pointer to the data and size is the size .... Return true if the data where consumed, false if not.
Definition at line 111 of file usb-buffer.c.
| void AsebaUsbInit | ( | unsigned char * | sendQueue, |
| size_t | sendQueueSize, | ||
| unsigned char * | recvQueue, | ||
| size_t | recvQueueSize | ||
| ) |
Definition at line 199 of file usb-buffer.c.
| int AsebaUsbRecvBufferEmpty | ( | void | ) |
Definition at line 207 of file usb-buffer.c.
| int AsebaUsbTxBusy | ( | void | ) |
Definition at line 222 of file usb-buffer.c.