You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

3.3 KiB

sysex_tools グループ

概要

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

メンバー

public uint16_t sysex_encoded_length(uint16_t decoded_length)

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

パラメータ

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

返り値

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

public uint16_t sysex_decoded_length(uint16_t encoded_length)

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

パラメータ

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

返り値

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

public uint16_t sysex_encode(uint8_t * encoded,const uint8_t * source,uint16_t length)

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

パラメータ

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

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

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

返り値

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

public uint16_t sysex_decode(uint8_t * decoded,const uint8_t * source,uint16_t length)

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

パラメータ

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

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

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

返り値

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