mirror of
https://github.com/mfulz/qmk_firmware.git
synced 2025-10-24 19:20:05 +02:00
* add git checkout internals_related.md translation * update based on comment * unify the end of sentence
3.3 KiB
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入力バッファからデコードするバイト数。
返り値
デコードされたバイト数。