|
Deluge Firmware
|
#include <AudioEngine.h>#include "midiengine.h"#include "functions.h"#include "soundeditor.h"#include "uart.h"#include <string.h>#include "PlaybackMode.h"#include "song.h"#include "numericdriver.h"#include "mtu.h"#include "MIDIDevice.h"#include "MIDIDeviceManager.h"#include "sio_char.h"#include "r_usb_basic_if.h"#include "r_usb_bitdefine.h"#include "iodefine.h"#include "r_usb_pmidi_config.h"#include "r_usb_hmidi_config.h"#include "r_usb_hmidi.h"
Macros | |
| #define | MISSING_MESSAGE_CHECK 0 |
Functions | |
| void | usb_cstd_usb_task () |
| usb_regadr_t | usb_hstd_get_usb_ip_adr (uint16_t ipno) |
| void | change_destination_of_send_pipe (usb_utr_t *ptr, uint16_t pipe, uint16_t *tbl, int sq) |
| void | usb_send_start_rohan (usb_utr_t *ptr, uint16_t pipe, uint8_t const *data, int size) |
| void | usb_receive_start_rohan_midi (uint16_t pipe) |
| void | usb_pstd_set_stall (uint16_t pipe) |
| void | usb_cstd_set_nak (usb_utr_t *ptr, uint16_t pipe) |
| void | hw_usb_clear_pid (usb_utr_t *ptr, uint16_t pipeno, uint16_t data) |
| uint16_t | hw_usb_read_pipectr (usb_utr_t *ptr, uint16_t pipeno) |
| void | flushUSBMIDIToHostedDevice (int ip, int d) |
| void | usbSendComplete (int ip) |
| void | usbSendCompletePeripheralOrA1 (usb_utr_t *p_mess, uint16_t data1, uint16_t data2) |
| void | usbReceiveComplete (int ip, int deviceNum, int tranlen) |
| void | usbReceiveCompletePeripheralOrA1 (usb_utr_t *p_mess, uint16_t data1, uint16_t data2) |
| void | brdyOccurred (int ip) |
| uint32_t | setupUSBMessage (uint8_t statusType, uint8_t channel, uint8_t data1, uint8_t data2) |
Variables | |
| volatile uint32_t | usbLock = 0 |
| uint16_t | g_usb_peri_connected |
| uint16_t | g_usb_usbmode |
| uint8_t | stopSendingAfterDeviceNum [USB_NUM_USBIP] |
| uint8_t | usbDeviceNumBeingSentToNow [USB_NUM_USBIP] |
| uint8_t | anyUSBSendingStillHappening [USB_NUM_USBIP] |
| usb_utr_t | g_usb_midi_send_utr [USB_NUM_USBIP] |
| usb_utr_t | g_usb_midi_recv_utr [USB_NUM_USBIP][MAX_NUM_USB_MIDI_DEVICES] |
| uint16_t | g_usb_hmidi_tmp_ep_tbl [USB_NUM_USBIP][MAX_NUM_USB_MIDI_DEVICES][(USB_EPL *2)+1] |
| usb_utr_t * | g_p_usb_pipe [USB_MAX_PIPE_NO+1u] |
| uint8_t | currentDeviceNumWithSendPipe [USB_NUM_USBIP][2] = {MAX_NUM_USB_MIDI_DEVICES, MAX_NUM_USB_MIDI_DEVICES} |
| uint32_t | timeLastBRDY [USB_NUM_USBIP] |
| MidiEngine | midiEngine |
| bool | anythingInUSBOutputBuffer = false |
| uint8_t | usbCurrentlyInitialized = false |
| #define MISSING_MESSAGE_CHECK 0 |
| void brdyOccurred | ( | int | ip | ) |
| void change_destination_of_send_pipe | ( | usb_utr_t * | ptr, |
| uint16_t | pipe, | ||
| uint16_t * | tbl, | ||
| int | sq | ||
| ) |
| void flushUSBMIDIToHostedDevice | ( | int | ip, |
| int | d | ||
| ) |
| void hw_usb_clear_pid | ( | usb_utr_t * | ptr, |
| uint16_t | pipeno, | ||
| uint16_t | data | ||
| ) |
| uint16_t hw_usb_read_pipectr | ( | usb_utr_t * | ptr, |
| uint16_t | pipeno | ||
| ) |
| uint32_t setupUSBMessage | ( | uint8_t | statusType, |
| uint8_t | channel, | ||
| uint8_t | data1, | ||
| uint8_t | data2 | ||
| ) |
| void usb_cstd_set_nak | ( | usb_utr_t * | ptr, |
| uint16_t | pipe | ||
| ) |
| void usb_cstd_usb_task | ( | ) |
| usb_regadr_t usb_hstd_get_usb_ip_adr | ( | uint16_t | ipno | ) |
| void usb_pstd_set_stall | ( | uint16_t | pipe | ) |
| void usb_receive_start_rohan_midi | ( | uint16_t | pipe | ) |
| void usb_send_start_rohan | ( | usb_utr_t * | ptr, |
| uint16_t | pipe, | ||
| uint8_t const * | data, | ||
| int | size | ||
| ) |
| void usbReceiveComplete | ( | int | ip, |
| int | deviceNum, | ||
| int | tranlen | ||
| ) |
| void usbReceiveCompletePeripheralOrA1 | ( | usb_utr_t * | p_mess, |
| uint16_t | data1, | ||
| uint16_t | data2 | ||
| ) |
| void usbSendComplete | ( | int | ip | ) |
| void usbSendCompletePeripheralOrA1 | ( | usb_utr_t * | p_mess, |
| uint16_t | data1, | ||
| uint16_t | data2 | ||
| ) |
| bool anythingInUSBOutputBuffer = false |
| uint8_t anyUSBSendingStillHappening[USB_NUM_USBIP] |
| uint8_t currentDeviceNumWithSendPipe[USB_NUM_USBIP][2] = {MAX_NUM_USB_MIDI_DEVICES, MAX_NUM_USB_MIDI_DEVICES} |
|
extern |
|
extern |
| usb_utr_t g_usb_midi_recv_utr[USB_NUM_USBIP][MAX_NUM_USB_MIDI_DEVICES] |
| usb_utr_t g_usb_midi_send_utr[USB_NUM_USBIP] |
|
extern |
|
extern |
| MidiEngine midiEngine |
| uint8_t stopSendingAfterDeviceNum[USB_NUM_USBIP] |
| uint32_t timeLastBRDY[USB_NUM_USBIP] |
| uint8_t usbCurrentlyInitialized = false |
| uint8_t usbDeviceNumBeingSentToNow[USB_NUM_USBIP] |
| volatile uint32_t usbLock = 0 |