BALTECH SDK wrapper functions reference

§ brp_Sys_SendMessage()

brp_errcode brp_Sys_SendMessage ( brp_Sys_SendMessage_t  params)

This command sends a message to the host via a certain protocol.

If Protocol is 0, the message is sent to all active protocols. Furthermore, it is transformed by the corresponding HostMsgFormatTemplates, e.g. Protocols/KeyboardEmulation/HostMsgFormatTemplate in case of keyboard emulation.

If Protocol is a protocol ID, the message is sent to this protocol only and no HostMsgFormatTemplate conversion is initiated. The desired protocol must be active, e.g. by calling brp_Sys_SelectProtocol().

Parameters
[in]paramsStruct with the following fields:
  • protocol used to execute the command
  • Protocol (in) A list of all protocols. Not all protocols are available on all Firmware variants.
  • MsgType (in) Event that triggered the message. It allows the host application to interpret the message content correctly.
  • Message (in) The message to be sent
  • Message_len (in) Length of Message (in bytes).