internals_sysex_tools.md 3.3 KB

sysex_tools グループ {#groupsysextools}

概要

メンバー 説明
public uint16_tsysex_encoded_length(uint16_t decoded_length) エンコード後のメッセージの長さを計算します。
public uint16_tsysex_decoded_length(uint16_t encoded_length) デコード後のメッセージの長さを計算します。
public uint16_tsysex_encode(uint8_t * encoded,const uint8_t * source,uint16_t length) sysex メッセージで安全に送信できるようにデータをエンコードします。
public uint16_tsysex_decode(uint8_t * decoded,const uint8_t * source,uint16_t length) エンコードされたデータをデコードします。

メンバー

public uint16_tsysex_encoded_length(uint16_t decoded_length) {#groupsysextools_1ga061e5607030412d6e62e2390d8013f0a}

エンコード後のメッセージの長さを計算します。

パラメータ

  • decoded_length エンコードするメッセージの長さのバイト数。

返り値

エンコード後のメッセージの長さのバイト数。

public uint16_tsysex_decoded_length(uint16_t encoded_length) {#groupsysextools_1ga121fc227d3acc1c0ea08c9a5c26fa3b0}

デコード後のメッセージの長さを計算します。

パラメータ

  • encoded_length エンコードされたメッセージの長さのバイト数。

返り値

デコードされた後のメッセージの長さのバイト数。

public uint16_tsysex_encode(uint8_t * encoded,const uint8_t * source,uint16_t length) {#groupsysextools_1ga54d77f8d32f92a6f329daefa2b314742}

sysex メッセージで安全に送信できるようにデータをエンコードします。

パラメータ

  • encoded 出力データバッファは、少なくとも sysex_encoded_length(length) バイトの長さが必要です。

  • source エンコードされるデータの入力バッファ。

  • length 入力バッファからエンコードするバイト数。

返り値

エンコードされたバイト数。

public uint16_tsysex_decode(uint8_t * decoded,const uint8_t * source,uint16_t length) {#groupsysextools_1gaaad1d9ba2d5eca709a0ab4ba40662229}

エンコードされたデータをデコードします。

パラメータ

  • decoded 出力データバッファは、少なくとも sysex_decoded_length(length) バイトの長さが必要です。

  • source デコードされるデータの入力バッファ。

  • length 入力バッファからデコードするバイト数。

返り値

デコードされたバイト数。