File webusb_controller.h
File List > includes-api > webusb_controller.h
Go to the documentation of this file
//*****************************************************************************
//
//*****************************************************************************
//*****************************************************************************
//
// ${copyright}
//
// This is part of revision ${version} of the AmbiqSuite Development Package.
//
//*****************************************************************************
#ifndef WEBUSB_CONTROLLER_H
#define WEBUSB_CONTROLLER_H
#if defined __cplusplus
extern "C" {
#endif
#include <stdint.h>
typedef void (*webusb_rx_cb)(const uint8_t *buf, uint32_t buf_len, void *param);
uint32_t webusb_send_data(uint8_t *buf, uint32_t bufsize);
void webusb_init(void);
void webusb_task(void);
void webusb_register_msg_cb(webusb_rx_cb cb, void *param);
void webusb_register_raw_cb(webusb_rx_cb cb, void *param);
#if defined __cplusplus
}
#endif
#endif // WEBUSB_CONTROLLER_H