|
hollyhock
|
Functions used for sending and receiving data via USB. More...

Go to the source code of this file.
Macros | |
| #define | constexpr |
| #define | ro(...) |
| #define | rw(...) |
| #define | wo(...) |
Variables | |
| enum Comm_Status(* | USB_Open )(uint16_t mode) |
| enum Comm_Status(* | USB_IsOpen )(void) |
| enum Comm_Status(* | USB_Close )(void) |
| enum Comm_Status(* | USB_ForceClose )(uint16_t mode) |
| enum Comm_Status(* | USB_Read )(void *out, uint16_t sz, uint16_t *count) wo(1) wo(3) |
| enum Comm_Status(* | USB_ReadSingle )(void *out) wo(1) |
| enum Comm_Status(* | USB_Peek )(uint16_t idx, void *out) wo(2) |
| uint16_t(* | USB_PollRX )(void) |
| enum Comm_Status(* | USB_ClearRX )(void) |
| enum Comm_Status(* | USB_Write )(const void *buf, uint16_t count) ro(1) |
| enum Comm_Status(* | USB_WriteSingle )(uint8_t x) |
| enum Comm_Status(* | USB_WriteUnbuffered )(uint8_t x) |
| uint16_t(* | USB_PollTX )(void) |
| enum Comm_Status(* | USB_ClearTX )(void) |
Functions used for sending and receiving data via USB.
| #define ro | ( | ... | ) |
| #define rw | ( | ... | ) |
| #define wo | ( | ... | ) |
|
extern |
Opens the USB port. Abortable by pressing Clear/On Does not set comm open flag meaning you want to use USB_ForceClose
| mode | Inherited from the Comm interface; needs to be 0x20 |
|
extern |
|
extern |
|
extern |
Reads up to sz bytes into out and writes the number received to count.
|
extern |
Sends a number of bytes through the USB port, by putting them in the transmit buffer.
| buf | pointer to buffer containing the bytes to transmit |
| count | amount of bytes to transmit from buf |