|
Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
|
Macros | |
| #define | ULOG(x...) |
| #define | AUPB_SIZE 4096 |
Functions | |
| int | handle_advanced_usb_control_get (uint8_t *data, int reqLen) |
| Accept a "get" feature report command from a USB host and write back whatever is needed to send back. | |
| int | advanced_usb_write_log_printf (const char *fmt, va_list args) |
| vaprintf stand-in for USB logging. | |
| int | uprintf (const char *fmt,...) |
| vaprintf stand-in for USB logging. | |
| int | handle_advanced_usb_terminal_get (uint8_t *data, int reqLen) |
| USB request to get text in buffer. | |
| void IRAM_ATTR | handle_advanced_usb_control_set (const uint8_t *data, int datalen) |
| Accept a "send" feature report command from a USB host and interpret it. executing whatever needs to be executed. | |
| #define ULOG | ( | x... | ) |
| #define AUPB_SIZE 4096 |
| int handle_advanced_usb_control_get | ( | uint8_t * | data, |
| int | reqLen ) |
Accept a "get" feature report command from a USB host and write back whatever is needed to send back.
| reqLen | Number of bytes host is requesting from us. |
| data | Pointer to a feature get request for the command set. |
| int advanced_usb_write_log_printf | ( | const char * | fmt, |
| va_list | args ) |
vaprintf stand-in for USB logging.
| fmt | vaprintf format |
| args | vaprintf args |
| int uprintf | ( | const char * | fmt, |
| ... ) |
vaprintf stand-in for USB logging.
| fmt | vaprintf format |
| ... | vaprintf args |
| int handle_advanced_usb_terminal_get | ( | uint8_t * | data, |
| int | reqLen ) |
USB request to get text in buffer.
| reqLen | The number of bytes the host is requesting from us. |
| data | The data that we will write back into |
| void IRAM_ATTR handle_advanced_usb_control_set | ( | const uint8_t * | data, |
| int | datalen ) |
Accept a "send" feature report command from a USB host and interpret it. executing whatever needs to be executed.
| datalen | Total length of the buffer (command ID included) |
| data | Pointer to full command |