mirror of
https://gitlab.com/hyperglitch/jellyfish.git
synced 2025-12-26 15:16:30 +00:00
23 lines
486 B
C
23 lines
486 B
C
/*
|
|
* SPDX-FileCopyrightText: 2025 Igor Brkic <igor@hyperglitch.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
#ifndef JF_USB_H
|
|
#define JF_USB_H
|
|
|
|
#include "usbd_cdc_interface.h"
|
|
|
|
void jf_usb_init(void);
|
|
|
|
void jf_usb_set_cdc_rx_callback(usb_cdc_rx_callback_t callback);
|
|
|
|
void jf_usb_send_data_to_host(const uint8_t* data, uint32_t length);
|
|
void jf_usb_cdc_tx(uint8_t* data, uint32_t length);
|
|
|
|
void jf_usb_add_to_buffer_from_isr(uint8_t *data, size_t len);
|
|
|
|
|
|
#endif //JF_USB_H
|