31#ifndef _ADVANCED_USB_CONTROL_H
32#define _ADVANCED_USB_CONTROL_H
38#define SCRATCH_IMMEDIATE_DWORDS 64
45typedef enum __attribute__((packed))
149int uprintf(
const char* fmt, ...);
void 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 ...
Definition advanced_usb_control.c:171
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.
Definition advanced_usb_control.c:55
int handle_advanced_usb_terminal_get(uint8_t *data, int reqLen)
USB request to get text in buffer.
Definition advanced_usb_control.c:134
int advanced_usb_write_log_printf(const char *fmt, va_list args)
vaprintf stand-in for USB logging.
Definition advanced_usb_control.c:103
int uprintf(const char *fmt,...)
vaprintf stand-in for USB logging.
Definition advanced_usb_control.c:118
ausb_cmd_t
Definition advanced_usb_control.h:46
@ AUSB_CMD_FLASH_WRITE
Definition advanced_usb_control.h:132
@ AUSB_CMD_READ_RAM
Definition advanced_usb_control.h:72
@ AUSB_CMD_SWITCH_MODE
Definition advanced_usb_control.h:87
@ AUSB_CMD_FLASH_READ
Definition advanced_usb_control.h:142
@ AUSB_CMD_REBOOT
Definition advanced_usb_control.h:55
@ AUSB_CMD_ALLOC_SCRATCH
Definition advanced_usb_control.h:98
@ AUSB_CMD_FLASH_ERASE
Definition advanced_usb_control.h:123
@ AUSB_CMD_WRITE_RAM
Definition advanced_usb_control.h:63
@ AUSB_CMD_EXEC_RAM
Definition advanced_usb_control.h:79
@ ACMD_CMD_GET_VER
Definition advanced_usb_control.h:113
@ ACMD_CMD_MEMSET
Definition advanced_usb_control.h:106