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.

66 lines
3.3 KiB

  1. # `sysex_tools` グループ {#group__sysex__tools}
  2. <!---
  3. original document: 0.10.9:docs/internals_sysex_tools.md
  4. git diff 0.10.9 HEAD -- docs/internals_sysex_tools.md | cat
  5. -->
  6. ## 概要
  7. | メンバー | 説明
  8. --------------------------------|---------------------------------------------
  9. | `public uint16_t `[`sysex_encoded_length`](#group__sysex__tools_1ga061e5607030412d6e62e2390d8013f0a)`(uint16_t decoded_length)` | エンコード後のメッセージの長さを計算します。
  10. | `public uint16_t `[`sysex_decoded_length`](#group__sysex__tools_1ga121fc227d3acc1c0ea08c9a5c26fa3b0)`(uint16_t encoded_length)` | デコード後のメッセージの長さを計算します。
  11. | `public uint16_t `[`sysex_encode`](#group__sysex__tools_1ga54d77f8d32f92a6f329daefa2b314742)`(uint8_t * encoded,const uint8_t * source,uint16_t length)` | sysex メッセージで安全に送信できるようにデータをエンコードします。
  12. | `public uint16_t `[`sysex_decode`](#group__sysex__tools_1gaaad1d9ba2d5eca709a0ab4ba40662229)`(uint8_t * decoded,const uint8_t * source,uint16_t length)` | エンコードされたデータをデコードします。
  13. ## メンバー
  14. #### `public uint16_t `[`sysex_encoded_length`](#group__sysex__tools_1ga061e5607030412d6e62e2390d8013f0a)`(uint16_t decoded_length)` {#group__sysex__tools_1ga061e5607030412d6e62e2390d8013f0a}
  15. エンコード後のメッセージの長さを計算します。
  16. #### パラメータ
  17. * `decoded_length` エンコードするメッセージの長さのバイト数。
  18. #### 返り値
  19. エンコード後のメッセージの長さのバイト数。
  20. #### `public uint16_t `[`sysex_decoded_length`](#group__sysex__tools_1ga121fc227d3acc1c0ea08c9a5c26fa3b0)`(uint16_t encoded_length)` {#group__sysex__tools_1ga121fc227d3acc1c0ea08c9a5c26fa3b0}
  21. デコード後のメッセージの長さを計算します。
  22. #### パラメータ
  23. * `encoded_length` エンコードされたメッセージの長さのバイト数。
  24. #### 返り値
  25. デコードされた後のメッセージの長さのバイト数。
  26. #### `public uint16_t `[`sysex_encode`](#group__sysex__tools_1ga54d77f8d32f92a6f329daefa2b314742)`(uint8_t * encoded,const uint8_t * source,uint16_t length)` {#group__sysex__tools_1ga54d77f8d32f92a6f329daefa2b314742}
  27. sysex メッセージで安全に送信できるようにデータをエンコードします。
  28. #### パラメータ
  29. * `encoded` 出力データバッファは、少なくとも sysex_encoded_length(length) バイトの長さが必要です。
  30. * `source` エンコードされるデータの入力バッファ。
  31. * `length` 入力バッファからエンコードするバイト数。
  32. #### 返り値
  33. エンコードされたバイト数。
  34. #### `public uint16_t `[`sysex_decode`](#group__sysex__tools_1gaaad1d9ba2d5eca709a0ab4ba40662229)`(uint8_t * decoded,const uint8_t * source,uint16_t length)` {#group__sysex__tools_1gaaad1d9ba2d5eca709a0ab4ba40662229}
  35. エンコードされたデータをデコードします。
  36. #### パラメータ
  37. * `decoded` 出力データバッファは、少なくとも sysex_decoded_length(length) バイトの長さが必要です。
  38. * `source` デコードされるデータの入力バッファ。
  39. * `length` 入力バッファからデコードするバイト数。
  40. #### 返り値
  41. デコードされたバイト数。