#ifndef USBD_CDC_IF_H
#define USBD_CDC_IF_H

#include "usbd_cdc.h"

extern USBD_CDC_ItfTypeDef USBD_CDC_fops;

/* Send data over USB CDC */
uint8_t CDC_Transmit(uint8_t *buf, uint16_t len);

/* Betaflight-style DFU reboot check — call early in main() */
void checkForBootloader(void);

/* PID tuning command interface (written by USB IRQ, read by main loop) */
extern volatile uint8_t cdc_cmd_ready;
extern volatile char    cdc_cmd_buf[32];

extern volatile uint8_t cdc_estop_request;
extern volatile uint8_t cdc_estop_clear_request;
#endif
