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.

54 lines
2.5 KiB

  1. # group `midi_util` {#group__midi__util}
  2. ## Summary
  3. Members | Descriptions
  4. --------------------------------|---------------------------------------------
  5. `enum `[`midi_packet_length_t`](#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e) | An enumeration of the possible packet length values.
  6. `public bool `[`midi_is_statusbyte`](#group__midi__util_1ga12e3b42ff9cbb4b4f2bc455fc8743ee5)`(uint8_t theByte)` | Test to see if the byte given is a status byte.
  7. `public bool `[`midi_is_realtime`](#group__midi__util_1gad2f52c363e34a8000d80c983c324e2d7)`(uint8_t theByte)` | Test to see if the byte given is a realtime message.
  8. `public `[`midi_packet_length_t`](#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e)` `[`midi_packet_length`](#group__midi__util_1gaa168b43af6ae9de0debce1625e4b8175)`(uint8_t status)` | Find the length of the packet associated with the status byte given.
  9. ## Members
  10. #### `enum `[`midi_packet_length_t`](#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e) {#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e}
  11. Values | Descriptions
  12. --------------------------------|---------------------------------------------
  13. UNDEFINED |
  14. ONE |
  15. TWO |
  16. THREE |
  17. An enumeration of the possible packet length values.
  18. #### `public bool `[`midi_is_statusbyte`](#group__midi__util_1ga12e3b42ff9cbb4b4f2bc455fc8743ee5)`(uint8_t theByte)` {#group__midi__util_1ga12e3b42ff9cbb4b4f2bc455fc8743ee5}
  19. Test to see if the byte given is a status byte.
  20. #### Parameters
  21. * `theByte` the byte to test
  22. #### Returns
  23. true if the byte given is a midi status byte
  24. #### `public bool `[`midi_is_realtime`](#group__midi__util_1gad2f52c363e34a8000d80c983c324e2d7)`(uint8_t theByte)` {#group__midi__util_1gad2f52c363e34a8000d80c983c324e2d7}
  25. Test to see if the byte given is a realtime message.
  26. #### Parameters
  27. * `theByte` the byte to test
  28. #### Returns
  29. true if it is a realtime message, false otherwise
  30. #### `public `[`midi_packet_length_t`](#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e)` `[`midi_packet_length`](#group__midi__util_1gaa168b43af6ae9de0debce1625e4b8175)`(uint8_t status)` {#group__midi__util_1gaa168b43af6ae9de0debce1625e4b8175}
  31. Find the length of the packet associated with the status byte given.
  32. #### Parameters
  33. * `status` the status byte
  34. #### Returns
  35. the length of the packet, will return UNDEFINED if the byte is not a status byte or if it is a sysex status byte