-
Notifications
You must be signed in to change notification settings - Fork 0
/
Usb.h
27 lines (21 loc) · 661 Bytes
/
Usb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* Copyright (C) 2017 Johan Bergkvist
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#ifndef USB_H
#define USB_H
#include <usb.h>
extern unsigned char out_packet[USBGEN_EP_SIZE];
extern unsigned char in_packet[USBGEN_EP_SIZE];
extern USB_HANDLE out_handle;
extern USB_HANDLE in_handle;
void SendOk(void);
void SendFail(void);
void SendResult8(unsigned char result);
void SendResult32(unsigned long result);
void SendDebug(unsigned char *data, unsigned char length);
void SendText(const char *data);
void SendInPacket(unsigned char *bytes, unsigned char length);
#endif