22 lines
796 B
C
22 lines
796 B
C
#ifndef __MIDI_SEND_H__
|
|
#define __MIDI_SEND_H__
|
|
|
|
|
|
/* MIDI 发送函数 */
|
|
void SendNoteOnMidiEvent(uint8_t Key, uint8_t OnVal);
|
|
void SendNoteOffMidiEvent(uint8_t Key, uint8_t OffVal);
|
|
void SendProgramChangeMidiEvent(uint8_t channel, uint8_t CC);
|
|
void SendBankChangeMidiEvent(uint8_t CC);
|
|
void SendVolumeChangeMidiEvent(uint8_t channel, uint8_t CC);
|
|
void SendMidiDataToDreamDSP(uint8_t* buff, uint16_t cnt);
|
|
void DefaultTask_SendMsg(uint16_t Data1, uint16_t Data2, uint16_t Data3, uint16_t Data4);
|
|
|
|
/* Unique BLE/BT name from AT32 UID: "PHON_" + 6 hex (last 3 UID bytes). out >= 12. */
|
|
#define BLE_DEVICE_NAME_LEN 11
|
|
void BleBuildDeviceName(char *out);
|
|
|
|
/* Push name to Dream (BLE + BT Audio) via proprietary SysEx on USART2. */
|
|
void Dream_ApplyUniqueBtNames(void);
|
|
|
|
#endif /* __MIDI_SEND_H__ */
|