Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Property Exchange

Andrew Mee edited this page Aug 29, 2021 · 5 revisions

midi2Processor M2_ENABLE_PE Methods

This enable processing of MIDI-CI Property Exchange. These methods are available if #define M2_ENABLE_PE is set.

Property Exchange requires a bit more memory than other parts of MIDI-CI. Enabling this will increase memory requirements.

void sendPECapabilityRequest(uint8_t group, uint32_t remoteMuid, uint8_t ciVer, uint8_t numRequests)

void sendPEGet(uint8_t group, uint32_t remoteMuid, uint8_t ciVer, uint8_t requestId, uint16_t headerLen, uint8_t* header)

void sendPEGetReply(uint8_t group, uint32_t remoteMuid, uint8_t ciVer, uint8_t requestId, uint16_t headerLen, uint8_t* header, int numberOfChunks, int numberOfThisChunk, uint16_t bodyLength , uint8_t* body)

inline void setPECapabilities(void (*fptr)(uint8_t group, uint32_t remoteMuid, uint8_t numRequests))

inline void setRecvPEGetInquiry(void (*fptr)(uint8_t group, uint32_t remoteMuid, peHeader requestDetails))

inline void setRecvPESetInquiry(void (*fptr)(uint8_t group, uint32_t remoteMuid, peHeader requestDetails, uint8_t bodyLen, uint8_t* body))

Clone this wiki locally