xmos-ai-tools 1.3.2.dev80__py3-none-macosx_10_15_universal2.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. xmos_ai_tools/__init__.py +7 -0
  2. xmos_ai_tools/io_server/__init__.py +151 -0
  3. xmos_ai_tools/runtime/__init__.py +0 -0
  4. xmos_ai_tools/runtime/buildfiles/aitoolslib.cmake +13 -0
  5. xmos_ai_tools/runtime/buildfiles/aitoolslib.make +8 -0
  6. xmos_ai_tools/runtime/include/flash_server.h +74 -0
  7. xmos_ai_tools/runtime/include/flatbuffers/allocator.h +68 -0
  8. xmos_ai_tools/runtime/include/flatbuffers/array.h +243 -0
  9. xmos_ai_tools/runtime/include/flatbuffers/base.h +474 -0
  10. xmos_ai_tools/runtime/include/flatbuffers/bfbs_generator.h +43 -0
  11. xmos_ai_tools/runtime/include/flatbuffers/buffer.h +142 -0
  12. xmos_ai_tools/runtime/include/flatbuffers/buffer_ref.h +53 -0
  13. xmos_ai_tools/runtime/include/flatbuffers/code_generators.h +235 -0
  14. xmos_ai_tools/runtime/include/flatbuffers/default_allocator.h +64 -0
  15. xmos_ai_tools/runtime/include/flatbuffers/detached_buffer.h +114 -0
  16. xmos_ai_tools/runtime/include/flatbuffers/flatbuffer_builder.h +1197 -0
  17. xmos_ai_tools/runtime/include/flatbuffers/flatbuffers.h +270 -0
  18. xmos_ai_tools/runtime/include/flatbuffers/flatc.h +111 -0
  19. xmos_ai_tools/runtime/include/flatbuffers/flexbuffers.h +1897 -0
  20. xmos_ai_tools/runtime/include/flatbuffers/grpc.h +300 -0
  21. xmos_ai_tools/runtime/include/flatbuffers/hash.h +127 -0
  22. xmos_ai_tools/runtime/include/flatbuffers/idl.h +1232 -0
  23. xmos_ai_tools/runtime/include/flatbuffers/minireflect.h +419 -0
  24. xmos_ai_tools/runtime/include/flatbuffers/pch/flatc_pch.h +39 -0
  25. xmos_ai_tools/runtime/include/flatbuffers/pch/pch.h +38 -0
  26. xmos_ai_tools/runtime/include/flatbuffers/reflection.h +502 -0
  27. xmos_ai_tools/runtime/include/flatbuffers/reflection_generated.h +1449 -0
  28. xmos_ai_tools/runtime/include/flatbuffers/registry.h +128 -0
  29. xmos_ai_tools/runtime/include/flatbuffers/stl_emulation.h +509 -0
  30. xmos_ai_tools/runtime/include/flatbuffers/string.h +64 -0
  31. xmos_ai_tools/runtime/include/flatbuffers/struct.h +53 -0
  32. xmos_ai_tools/runtime/include/flatbuffers/table.h +168 -0
  33. xmos_ai_tools/runtime/include/flatbuffers/util.h +690 -0
  34. xmos_ai_tools/runtime/include/flatbuffers/vector.h +370 -0
  35. xmos_ai_tools/runtime/include/flatbuffers/vector_downward.h +271 -0
  36. xmos_ai_tools/runtime/include/flatbuffers/verifier.h +283 -0
  37. xmos_ai_tools/runtime/include/ioserver.h +44 -0
  38. xmos_ai_tools/runtime/include/lib_nn/api/TransposeConv.h +24 -0
  39. xmos_ai_tools/runtime/include/lib_nn/api/add_int16.h +27 -0
  40. xmos_ai_tools/runtime/include/lib_nn/api/add_int16_transform.h +42 -0
  41. xmos_ai_tools/runtime/include/lib_nn/api/dequantize_int16.h +22 -0
  42. xmos_ai_tools/runtime/include/lib_nn/api/dequantize_int16_transform.h +34 -0
  43. xmos_ai_tools/runtime/include/lib_nn/api/expand_8_to_16.h +8 -0
  44. xmos_ai_tools/runtime/include/lib_nn/api/multiply_int16.h +42 -0
  45. xmos_ai_tools/runtime/include/lib_nn/api/multiply_int16_transform.h +71 -0
  46. xmos_ai_tools/runtime/include/lib_nn/api/nn_api.h +15 -0
  47. xmos_ai_tools/runtime/include/lib_nn/api/nn_bin_types.h +14 -0
  48. xmos_ai_tools/runtime/include/lib_nn/api/nn_config.h +287 -0
  49. xmos_ai_tools/runtime/include/lib_nn/api/nn_conv2d_structs.h +72 -0
  50. xmos_ai_tools/runtime/include/lib_nn/api/nn_image.h +26 -0
  51. xmos_ai_tools/runtime/include/lib_nn/api/nn_layers.h +303 -0
  52. xmos_ai_tools/runtime/include/lib_nn/api/nn_op_helper.h +132 -0
  53. xmos_ai_tools/runtime/include/lib_nn/api/nn_op_utils.h +150 -0
  54. xmos_ai_tools/runtime/include/lib_nn/api/nn_operator.h +18 -0
  55. xmos_ai_tools/runtime/include/lib_nn/api/nn_pooling.h +551 -0
  56. xmos_ai_tools/runtime/include/lib_nn/api/nn_types.h +83 -0
  57. xmos_ai_tools/runtime/include/lib_nn/api/nn_window_params.h +55 -0
  58. xmos_ai_tools/runtime/include/lib_nn/api/output_transform_fn_int16.h +54 -0
  59. xmos_ai_tools/runtime/include/lib_nn/api/output_transform_fn_int16_kernel_transform.h +37 -0
  60. xmos_ai_tools/runtime/include/lib_nn/api/output_transform_fn_int16_mappings.h +13 -0
  61. xmos_ai_tools/runtime/include/lib_nn/api/quadratic_approximation.h +82 -0
  62. xmos_ai_tools/runtime/include/lib_nn/api/quadratic_interpolation.h +23 -0
  63. xmos_ai_tools/runtime/include/lib_nn/api/quantize_int16.h +22 -0
  64. xmos_ai_tools/runtime/include/lib_nn/api/quantize_int16_transform.h +33 -0
  65. xmos_ai_tools/runtime/include/lib_nn/api/version.h +13 -0
  66. xmos_ai_tools/runtime/include/lib_nn/api/vpu_memmove_word_aligned.h +15 -0
  67. xmos_ai_tools/runtime/include/lib_nn/api/vpu_memset_256.h +55 -0
  68. xmos_ai_tools/runtime/include/lib_nn/api/vpu_sim.h +118 -0
  69. xmos_ai_tools/runtime/include/lib_nn/api/xs3_vpu.h +216 -0
  70. xmos_ai_tools/runtime/include/lib_nn/api/xs3a_registers.h +2869 -0
  71. xmos_ai_tools/runtime/include/lib_nn/src/asm/asm_constants.h +41 -0
  72. xmos_ai_tools/runtime/include/lib_nn/src/asm/window_op_plan.h +25 -0
  73. xmos_ai_tools/runtime/include/lib_tflite_micro/api/fast_flash.h +47 -0
  74. xmos_ai_tools/runtime/include/lib_tflite_micro/api/inference_engine.h +218 -0
  75. xmos_ai_tools/runtime/include/lib_tflite_micro/api/memory_parallel_transport.h +52 -0
  76. xmos_ai_tools/runtime/include/lib_tflite_micro/api/version.h +13 -0
  77. xmos_ai_tools/runtime/include/lib_tflite_micro/api/xcore_config.h +17 -0
  78. xmos_ai_tools/runtime/include/lib_tflite_micro/api/xcore_device_memory.h +62 -0
  79. xmos_ai_tools/runtime/include/lib_tflite_micro/api/xcore_shared_config.h +31 -0
  80. xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/conv2d_float.h +155 -0
  81. xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_common.h +19 -0
  82. xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_custom_options.h +28 -0
  83. xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_error_reporter.h +32 -0
  84. xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_interpreter.h +49 -0
  85. xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_ops.h +71 -0
  86. xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_profiler.h +49 -0
  87. xmos_ai_tools/runtime/include/lib_tflite_micro/src/tflite-xcore-kernels/xcore_utils.h +160 -0
  88. xmos_ai_tools/runtime/include/lib_tflite_micro/src/thread_call.h +119 -0
  89. xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/legacy/usb_defs.h +4 -0
  90. xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/legacy/usb_device.h +4 -0
  91. xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/legacy/usb_std_descriptors.h +4 -0
  92. xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/legacy/usb_std_requests.h +4 -0
  93. xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/xud.h +518 -0
  94. xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/xud_conf_default.h +11 -0
  95. xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/xud_device.h +87 -0
  96. xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/xud_std_descriptors.h +191 -0
  97. xmos_ai_tools/runtime/include/lib_xud/lib_xud/api/xud_std_requests.h +120 -0
  98. xmos_ai_tools/runtime/include/lib_xud/lib_xud/src/user/XUD_USB_Defines.h +70 -0
  99. xmos_ai_tools/runtime/include/lib_xud/lib_xud/src/user/class/hid.h +23 -0
  100. xmos_ai_tools/runtime/include/lib_xud/lib_xud/src/user/class/usbaudio10.h +30 -0
  101. xmos_ai_tools/runtime/include/lib_xud/lib_xud/src/user/class/usbaudio20.h +357 -0
  102. xmos_ai_tools/runtime/include/lib_xud/lib_xud/src/user/class/usbaudiocommon.h +168 -0
  103. xmos_ai_tools/runtime/include/signal/micro/kernels/delay_flexbuffers_generated_data.h +25 -0
  104. xmos_ai_tools/runtime/include/signal/micro/kernels/energy_flexbuffers_generated_data.h +28 -0
  105. xmos_ai_tools/runtime/include/signal/micro/kernels/fft_flexbuffers_generated_data.h +37 -0
  106. xmos_ai_tools/runtime/include/signal/micro/kernels/filter_bank_flexbuffers_generated_data.h +25 -0
  107. xmos_ai_tools/runtime/include/signal/micro/kernels/filter_bank_log_flexbuffers_generated_data.h +27 -0
  108. xmos_ai_tools/runtime/include/signal/micro/kernels/filter_bank_spectral_subtraction_flexbuffers_generated_data.h +26 -0
  109. xmos_ai_tools/runtime/include/signal/micro/kernels/framer_flexbuffers_generated_data.h +25 -0
  110. xmos_ai_tools/runtime/include/signal/micro/kernels/irfft.h +31 -0
  111. xmos_ai_tools/runtime/include/signal/micro/kernels/overlap_add_flexbuffers_generated_data.h +25 -0
  112. xmos_ai_tools/runtime/include/signal/micro/kernels/pcan_flexbuffers_generated_data.h +7 -0
  113. xmos_ai_tools/runtime/include/signal/micro/kernels/rfft.h +31 -0
  114. xmos_ai_tools/runtime/include/signal/micro/kernels/stacker_flexbuffers_generated_data.h +25 -0
  115. xmos_ai_tools/runtime/include/signal/micro/kernels/window_flexbuffers_generated_data.h +25 -0
  116. xmos_ai_tools/runtime/include/signal/src/circular_buffer.h +118 -0
  117. xmos_ai_tools/runtime/include/signal/src/complex.h +29 -0
  118. xmos_ai_tools/runtime/include/signal/src/energy.h +38 -0
  119. xmos_ai_tools/runtime/include/signal/src/fft_auto_scale.h +35 -0
  120. xmos_ai_tools/runtime/include/signal/src/filter_bank.h +69 -0
  121. xmos_ai_tools/runtime/include/signal/src/filter_bank_log.h +38 -0
  122. xmos_ai_tools/runtime/include/signal/src/filter_bank_spectral_subtraction.h +73 -0
  123. xmos_ai_tools/runtime/include/signal/src/filter_bank_square_root.h +34 -0
  124. xmos_ai_tools/runtime/include/signal/src/irfft.h +84 -0
  125. xmos_ai_tools/runtime/include/signal/src/kiss_fft_wrappers/kiss_fft_common.h +49 -0
  126. xmos_ai_tools/runtime/include/signal/src/kiss_fft_wrappers/kiss_fft_float.h +31 -0
  127. xmos_ai_tools/runtime/include/signal/src/kiss_fft_wrappers/kiss_fft_int16.h +30 -0
  128. xmos_ai_tools/runtime/include/signal/src/kiss_fft_wrappers/kiss_fft_int32.h +31 -0
  129. xmos_ai_tools/runtime/include/signal/src/log.h +30 -0
  130. xmos_ai_tools/runtime/include/signal/src/max_abs.h +31 -0
  131. xmos_ai_tools/runtime/include/signal/src/msb.h +32 -0
  132. xmos_ai_tools/runtime/include/signal/src/overlap_add.h +46 -0
  133. xmos_ai_tools/runtime/include/signal/src/pcan_argc_fixed.h +41 -0
  134. xmos_ai_tools/runtime/include/signal/src/rfft.h +85 -0
  135. xmos_ai_tools/runtime/include/signal/src/square_root.h +32 -0
  136. xmos_ai_tools/runtime/include/signal/src/window.h +31 -0
  137. xmos_ai_tools/runtime/include/signal/testdata/fft_test_data.h +48 -0
  138. xmos_ai_tools/runtime/include/tensorflow/lite/array.h +156 -0
  139. xmos_ai_tools/runtime/include/tensorflow/lite/builtin_op_data.h +22 -0
  140. xmos_ai_tools/runtime/include/tensorflow/lite/builtin_ops.h +241 -0
  141. xmos_ai_tools/runtime/include/tensorflow/lite/c/builtin_op_data.h +20 -0
  142. xmos_ai_tools/runtime/include/tensorflow/lite/c/c_api_types.h +26 -0
  143. xmos_ai_tools/runtime/include/tensorflow/lite/c/common.h +30 -0
  144. xmos_ai_tools/runtime/include/tensorflow/lite/context_util.h +54 -0
  145. xmos_ai_tools/runtime/include/tensorflow/lite/core/api/error_reporter.h +72 -0
  146. xmos_ai_tools/runtime/include/tensorflow/lite/core/api/flatbuffer_conversions.h +440 -0
  147. xmos_ai_tools/runtime/include/tensorflow/lite/core/api/tensor_utils.h +28 -0
  148. xmos_ai_tools/runtime/include/tensorflow/lite/core/c/builtin_op_data.h +626 -0
  149. xmos_ai_tools/runtime/include/tensorflow/lite/core/c/c_api_types.h +178 -0
  150. xmos_ai_tools/runtime/include/tensorflow/lite/core/c/common.h +1496 -0
  151. xmos_ai_tools/runtime/include/tensorflow/lite/core/macros.h +78 -0
  152. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/bits.h +102 -0
  153. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/fft.h +50 -0
  154. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/fft_io.h +34 -0
  155. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/fft_util.h +34 -0
  156. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/filterbank.h +63 -0
  157. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/filterbank_io.h +35 -0
  158. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/filterbank_util.h +50 -0
  159. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/frontend.h +64 -0
  160. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/frontend_io.h +31 -0
  161. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/frontend_util.h +52 -0
  162. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/kiss_fft_common.h +48 -0
  163. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/kiss_fft_int16.h +33 -0
  164. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/log_lut.h +40 -0
  165. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/log_scale.h +39 -0
  166. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/log_scale_io.h +33 -0
  167. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/log_scale_util.h +45 -0
  168. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/noise_reduction.h +46 -0
  169. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_io.h +36 -0
  170. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_util.h +50 -0
  171. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control.h +47 -0
  172. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_util.h +57 -0
  173. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/window.h +49 -0
  174. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/window_io.h +34 -0
  175. xmos_ai_tools/runtime/include/tensorflow/lite/experimental/microfrontend/lib/window_util.h +45 -0
  176. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/common.h +1358 -0
  177. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/compatibility.h +122 -0
  178. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/cppmath.h +40 -0
  179. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/max.h +35 -0
  180. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/min.h +35 -0
  181. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/optimized/neon_check.h +20 -0
  182. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/portable_tensor.h +141 -0
  183. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/portable_tensor_utils.h +623 -0
  184. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/quantization_util.h +292 -0
  185. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/add.h +561 -0
  186. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/add_n.h +86 -0
  187. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/arg_min_max.h +88 -0
  188. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/batch_matmul.h +275 -0
  189. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/batch_to_space_nd.h +101 -0
  190. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/binary_function.h +91 -0
  191. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/broadcast_args.h +56 -0
  192. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/broadcast_to.h +97 -0
  193. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/ceil.h +37 -0
  194. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/comparisons.h +271 -0
  195. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/concatenation.h +141 -0
  196. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/conv.h +289 -0
  197. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/cumsum.h +175 -0
  198. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/depth_to_space.h +79 -0
  199. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h +100 -0
  200. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h +319 -0
  201. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/dequantize.h +78 -0
  202. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/div.h +247 -0
  203. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/elu.h +37 -0
  204. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/exp.h +38 -0
  205. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/fill.h +38 -0
  206. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/floor.h +39 -0
  207. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/floor_div.h +35 -0
  208. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/floor_mod.h +44 -0
  209. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/fully_connected.h +323 -0
  210. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/hard_swish.h +168 -0
  211. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/add.h +250 -0
  212. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/conv.h +241 -0
  213. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/depthwise_conv.h +291 -0
  214. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/fully_connected.h +126 -0
  215. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/l2normalization.h +67 -0
  216. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/logistic.h +121 -0
  217. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/mean.h +18 -0
  218. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/mul.h +194 -0
  219. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/pooling.h +264 -0
  220. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/tanh.h +117 -0
  221. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/integer_ops/transpose_conv.h +224 -0
  222. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/l2normalization.h +90 -0
  223. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/leaky_relu.h +69 -0
  224. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/log_softmax.h +256 -0
  225. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/logistic.h +132 -0
  226. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/lstm_cell.h +422 -0
  227. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/maximum_minimum.h +64 -0
  228. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/mul.h +267 -0
  229. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/neg.h +37 -0
  230. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/pad.h +169 -0
  231. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/pooling.h +303 -0
  232. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.h +333 -0
  233. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/portable_tensor_utils_impl.h +244 -0
  234. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/prelu.h +111 -0
  235. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/process_broadcast_shapes.h +140 -0
  236. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/quantize.h +89 -0
  237. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/reduce.h +491 -0
  238. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/requantize.h +70 -0
  239. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/resize_bilinear.h +233 -0
  240. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/resize_nearest_neighbor.h +102 -0
  241. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/round.h +51 -0
  242. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/select.h +151 -0
  243. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/slice.h +80 -0
  244. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/softmax.h +233 -0
  245. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/space_to_batch_nd.h +109 -0
  246. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/space_to_depth.h +80 -0
  247. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/strided_slice.h +147 -0
  248. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/sub.h +465 -0
  249. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/tanh.h +129 -0
  250. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/transpose.h +203 -0
  251. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/reference/transpose_conv.h +225 -0
  252. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/runtime_shape.h +168 -0
  253. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/strided_slice_logic.h +278 -0
  254. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/tensor_ctypes.h +42 -0
  255. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/internal/types.h +1096 -0
  256. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/kernel_util.h +341 -0
  257. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/op_macros.h +49 -0
  258. xmos_ai_tools/runtime/include/tensorflow/lite/kernels/padding.h +115 -0
  259. xmos_ai_tools/runtime/include/tensorflow/lite/micro/arena_allocator/ibuffer_allocator.h +100 -0
  260. xmos_ai_tools/runtime/include/tensorflow/lite/micro/arena_allocator/non_persistent_arena_buffer_allocator.h +104 -0
  261. xmos_ai_tools/runtime/include/tensorflow/lite/micro/arena_allocator/persistent_arena_buffer_allocator.h +58 -0
  262. xmos_ai_tools/runtime/include/tensorflow/lite/micro/arena_allocator/recording_single_arena_buffer_allocator.h +63 -0
  263. xmos_ai_tools/runtime/include/tensorflow/lite/micro/arena_allocator/single_arena_buffer_allocator.h +144 -0
  264. xmos_ai_tools/runtime/include/tensorflow/lite/micro/benchmarks/micro_benchmark.h +95 -0
  265. xmos_ai_tools/runtime/include/tensorflow/lite/micro/compatibility.h +32 -0
  266. xmos_ai_tools/runtime/include/tensorflow/lite/micro/cortex_m_generic/debug_log_callback.h +49 -0
  267. xmos_ai_tools/runtime/include/tensorflow/lite/micro/debug_log.h +38 -0
  268. xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/micro_speech/micro_model_settings.h +37 -0
  269. xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/network_tester/expected_output_data.h +47 -0
  270. xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/network_tester/input_data.h +108 -0
  271. xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/network_tester/network_model.h +166 -0
  272. xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/person_detection/detection_responder.h +32 -0
  273. xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/person_detection/image_provider.h +38 -0
  274. xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/person_detection/main_functions.h +37 -0
  275. xmos_ai_tools/runtime/include/tensorflow/lite/micro/examples/person_detection/model_settings.h +35 -0
  276. xmos_ai_tools/runtime/include/tensorflow/lite/micro/fake_micro_context.h +70 -0
  277. xmos_ai_tools/runtime/include/tensorflow/lite/micro/flatbuffer_utils.h +65 -0
  278. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/activation_utils.h +57 -0
  279. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/activations.h +64 -0
  280. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/add.h +78 -0
  281. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/arc_mli/mli_function_specializations.h +141 -0
  282. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/arc_mli/mli_interface.h +75 -0
  283. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/arc_mli/mli_slicers.h +56 -0
  284. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/arc_mli/mli_tf_utils.h +310 -0
  285. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/arc_mli/scratch_buf_mgr.h +145 -0
  286. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/arc_mli/scratch_buffers.h +78 -0
  287. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/ceva/ceva_common.h +24 -0
  288. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/ceva/ceva_tflm_lib.h +613 -0
  289. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/ceva/mcps_macros.h +115 -0
  290. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/ceva/types.h +1286 -0
  291. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/circular_buffer.h +45 -0
  292. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/circular_buffer_flexbuffers_generated_data.h +22 -0
  293. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/conv.h +117 -0
  294. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/conv_test.h +94 -0
  295. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/depthwise_conv.h +80 -0
  296. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/dequantize.h +38 -0
  297. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/detection_postprocess_flexbuffers_generated_data.h +25 -0
  298. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/ethosu.h +28 -0
  299. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/fully_connected.h +112 -0
  300. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/hard_swish.h +30 -0
  301. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/kernel_runner.h +86 -0
  302. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/kernel_util.h +150 -0
  303. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/leaky_relu.h +43 -0
  304. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/logical.h +35 -0
  305. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/logistic.h +42 -0
  306. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/lstm_eval.h +541 -0
  307. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/lstm_eval_test.h +817 -0
  308. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/lstm_shared.h +150 -0
  309. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/micro_ops.h +158 -0
  310. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/micro_tensor_utils.h +56 -0
  311. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/mul.h +74 -0
  312. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/pad.h +27 -0
  313. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/pooling.h +142 -0
  314. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/prelu.h +39 -0
  315. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/quantize.h +37 -0
  316. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/reduce.h +65 -0
  317. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/reshape.h +26 -0
  318. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/softmax.h +67 -0
  319. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/strided_slice.h +40 -0
  320. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/sub.h +60 -0
  321. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/svdf.h +100 -0
  322. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/testdata/conv_test_data.h +37 -0
  323. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/testdata/lstm_test_data.h +579 -0
  324. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/unidirectional_sequence_lstm.h +47 -0
  325. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/hifimini/fixedpoint_utils.h +139 -0
  326. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/lstm_eval.h +216 -0
  327. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/lstm_shared.h +78 -0
  328. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa.h +38 -0
  329. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_add.h +48 -0
  330. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_conv.h +89 -0
  331. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_depthwise_conv.h +74 -0
  332. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_fully_connected.h +78 -0
  333. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_pad.h +49 -0
  334. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_pooling.h +76 -0
  335. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_reduce.h +47 -0
  336. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_reshape.h +44 -0
  337. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_softmax.h +58 -0
  338. xmos_ai_tools/runtime/include/tensorflow/lite/micro/kernels/xtensa/xtensa_svdf.h +39 -0
  339. xmos_ai_tools/runtime/include/tensorflow/lite/micro/memory_helpers.h +64 -0
  340. xmos_ai_tools/runtime/include/tensorflow/lite/micro/memory_planner/greedy_memory_planner.h +170 -0
  341. xmos_ai_tools/runtime/include/tensorflow/lite/micro/memory_planner/linear_memory_planner.h +53 -0
  342. xmos_ai_tools/runtime/include/tensorflow/lite/micro/memory_planner/memory_plan_struct.h +73 -0
  343. xmos_ai_tools/runtime/include/tensorflow/lite/micro/memory_planner/micro_memory_planner.h +95 -0
  344. xmos_ai_tools/runtime/include/tensorflow/lite/micro/memory_planner/non_persistent_buffer_planner_shim.h +133 -0
  345. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_allocation_info.h +138 -0
  346. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_allocator.h +351 -0
  347. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_arena_constants.h +28 -0
  348. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_common.h +38 -0
  349. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_context.h +176 -0
  350. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_graph.h +79 -0
  351. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_interpreter.h +189 -0
  352. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_interpreter_context.h +125 -0
  353. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_interpreter_graph.h +110 -0
  354. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_log.h +42 -0
  355. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_mutable_op_resolver.h +708 -0
  356. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_op_resolver.h +62 -0
  357. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_profiler.h +140 -0
  358. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_profiler_interface.h +38 -0
  359. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_resource_variable.h +89 -0
  360. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_time.h +36 -0
  361. xmos_ai_tools/runtime/include/tensorflow/lite/micro/micro_utils.h +162 -0
  362. xmos_ai_tools/runtime/include/tensorflow/lite/micro/mock_micro_graph.h +60 -0
  363. xmos_ai_tools/runtime/include/tensorflow/lite/micro/python/interpreter/src/python_ops_resolver.h +21 -0
  364. xmos_ai_tools/runtime/include/tensorflow/lite/micro/python/tflite_size/src/flatbuffer_size.h +30 -0
  365. xmos_ai_tools/runtime/include/tensorflow/lite/micro/python/tflite_size/src/flatbuffer_size_wrapper.h +33 -0
  366. xmos_ai_tools/runtime/include/tensorflow/lite/micro/recording_micro_allocator.h +125 -0
  367. xmos_ai_tools/runtime/include/tensorflow/lite/micro/recording_micro_interpreter.h +69 -0
  368. xmos_ai_tools/runtime/include/tensorflow/lite/micro/system_setup.h +27 -0
  369. xmos_ai_tools/runtime/include/tensorflow/lite/micro/test_helper_custom_ops.h +49 -0
  370. xmos_ai_tools/runtime/include/tensorflow/lite/micro/test_helpers.h +334 -0
  371. xmos_ai_tools/runtime/include/tensorflow/lite/micro/testing/micro_test.h +267 -0
  372. xmos_ai_tools/runtime/include/tensorflow/lite/micro/testing/test_conv_model.h +23 -0
  373. xmos_ai_tools/runtime/include/tensorflow/lite/micro/tflite_bridge/flatbuffer_conversions_bridge.h +45 -0
  374. xmos_ai_tools/runtime/include/tensorflow/lite/micro/tflite_bridge/micro_error_reporter.h +36 -0
  375. xmos_ai_tools/runtime/include/tensorflow/lite/micro/tools/benchmarking/log_utils.h +273 -0
  376. xmos_ai_tools/runtime/include/tensorflow/lite/micro/tools/benchmarking/metrics.h +41 -0
  377. xmos_ai_tools/runtime/include/tensorflow/lite/micro/tools/benchmarking/op_resolver.h +127 -0
  378. xmos_ai_tools/runtime/include/tensorflow/lite/portable_type_to_tflitetype.h +75 -0
  379. xmos_ai_tools/runtime/include/tensorflow/lite/schema/schema_generated.h +24644 -0
  380. xmos_ai_tools/runtime/include/tensorflow/lite/schema/schema_utils.h +33 -0
  381. xmos_ai_tools/runtime/include/tile_ram_server.h +38 -0
  382. xmos_ai_tools/runtime/lib/libhost_xtflitemicro.a +0 -0
  383. xmos_ai_tools/runtime/lib/libxtflitemicro.a +0 -0
  384. xmos_ai_tools/xformer/__init__.py +60 -0
  385. xmos_ai_tools/xformer/flash.py +190 -0
  386. xmos_ai_tools/xinterpreters/__init__.py +1 -0
  387. xmos_ai_tools/xinterpreters/exceptions.py +38 -0
  388. xmos_ai_tools/xinterpreters/host_interpreter.py +652 -0
  389. xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.1.0.1.dylib +0 -0
  390. xmos_ai_tools/xinterpreters/libs/macos/xtflm_python.dylib +0 -0
  391. xmos_ai_tools-1.3.2.dev80.data/data/bin/xcore-opt +0 -0
  392. xmos_ai_tools-1.3.2.dev80.dist-info/METADATA +33 -0
  393. xmos_ai_tools-1.3.2.dev80.dist-info/RECORD +395 -0
  394. xmos_ai_tools-1.3.2.dev80.dist-info/WHEEL +5 -0
  395. xmos_ai_tools-1.3.2.dev80.dist-info/top_level.txt +1 -0
@@ -0,0 +1,357 @@
1
+ // Copyright 2017-2021 XMOS LIMITED.
2
+ // This Software is subject to the terms of the XMOS Public Licence: Version 1.
3
+ /**
4
+ * @brief Defines from the USB Audio 2.0 Specifications
5
+ * @author Ross Owen, XMOS Limited
6
+ */
7
+ #ifndef _USBAUDIO20_H_
8
+ #define _USBAUDIO20_H_
9
+
10
+ #include "usbaudiocommon.h"
11
+
12
+ /***********************************************************************/
13
+ /* USB Audio 2.0 Class Specification */
14
+
15
+ /* A.1 Audio Function Class Code */
16
+ #define AUDIO_FUNCTION AUDIO
17
+
18
+ /* A.2 Audio Function Subclass Codes */
19
+ #define FUNCTION_SUBCLASS_UNDEFINED 0x00
20
+
21
+ /* A.3 Audio Function Protocol Codes */
22
+ enum USB_Audio_FuncProtocolCodes_t
23
+ {
24
+ UAC_FUNC_PROTOCOL_UNDEFINED = 0x00,
25
+ UAC_FUNC_PROTOCOL_AF_VERSION_02_00 = 0x20
26
+ };
27
+
28
+ /* A.4 Audio Interface Class Code */
29
+ #define AUDIO 0x01
30
+
31
+ /* A.5 Audio Interface Subclass Codes */
32
+ enum UAC_IntSubclassCodes_t
33
+ {
34
+ UAC_INT_SUBCLASS_AUDIOCONTROL = 0x01,
35
+ UAC_INT_SUBCLASS_AUDIOSTREAMING = 0x02,
36
+ UAC_INT_SUBCLASS_MIDISTREAMING = 0x03
37
+ };
38
+
39
+ /* A.6 Audio Interface Protocol Codes */
40
+ enum UAC_IntProtocolCodes_t
41
+ {
42
+ UAC_INT_PROTOCOL_UNDEFINED = 0x00,
43
+ UAC_INT_PROTOCOL_IP_VERSION_02_00 = 0x20
44
+ };
45
+
46
+ /* A.7 Audio Function Category Codes */
47
+ enum UAC_AudioFunctionCategory_t
48
+ {
49
+ UAC_FUNCTION_SUBCLASS_UNDEFINED = 0x00,
50
+ UAC_FUNCTION_DESKTOP_SPEAKER = 0x01,
51
+ UAC_FUNCITON_HOME_THEATER = 0x02,
52
+ UAC_FUNCTION_MICROPHONE = 0x03,
53
+ UAC_FUNCITON_HEADSET = 0x04,
54
+ UAC_FUNCTION_TELEPHONE = 0x05,
55
+ UAC_FUNCTION_CONVERTER = 0x06,
56
+ UAC_FUNCTION_VOICE_SOUND_RECORDER = 0x07,
57
+ UAC_FUNCTION_IO_BOX = 0x08,
58
+ UAC_FUNCTION_MUSICAL_INTRUMENT = 0x09,
59
+ UAC_FUNCTION_PRO_AUDIO = 0x0A,
60
+ UAC_FUNCTION_AUDIO_VIDEO = 0x0B,
61
+ UAC_FUNCTION_CONTROL_PANEL = 0x0C,
62
+ UAC_FUNCITON_OTHER = 0xFF
63
+ };
64
+
65
+ /* A.8 Audio Class-Specific Descriptor Types */
66
+ /* Shared with Audio Class 1.0 */
67
+ enum UAC_CSDescriptorTypes_t
68
+ {
69
+ UAC_CS_DESCTYPE_UNDEFINED = 0x20,
70
+ UAC_CS_DESCTYPE_DEVICE = 0x21,
71
+ UAC_CS_DESCTYPE_CONFIGURATION = 0x22,
72
+ UAC_CS_DESCTYPE_STRING = 0x23,
73
+ UAC_CS_DESCTYPE_INTERFACE = 0x24,
74
+ UAC_CS_DESCTYPE_ENDPOINT = 0x25,
75
+ };
76
+
77
+ /* A.9 Audio Class-Specific AC Interface Descriptor Subtypes */
78
+ enum UAC_CS_AC_InterfaceDescriptorSubtype_t
79
+ {
80
+ UAC_CS_AC_INTERFACE_SUBTYPE_AC_DESCRIPTOR_UNDEFINED = 0x00,
81
+ UAC_CS_AC_INTERFACE_SUBTYPE_HEADER = 0x01,
82
+ UAC_CS_AC_INTERFACE_SUBTYPE_INPUT_TERMINAL = 0x02,
83
+ UAC_CS_AC_INTERFACE_SUBTYPE_OUTPUT_TERMINAL = 0x03,
84
+ UAC_CS_AC_INTERFACE_SUBTYPE_MIXER_UNIT = 0x04,
85
+ UAC_CS_AC_INTERFACE_SUBTYPE_SELECTOR_UNIT = 0x05,
86
+ UAC_CS_AC_INTERFACE_SUBTYPE_FEATURE_UNIT = 0x06,
87
+ UAC_CS_AC_INTERFACE_SUBTYPE_EFFECT_UNIT = 0x07,
88
+ UAC_CS_AC_INTERFACE_SUBTYPE_PROCESSING_UNIT = 0x08,
89
+ UAC_CS_AC_INTERFACE_SUBTYPE_EXTENSION_UNIT = 0x09,
90
+ UAC_CS_AC_INTERFACE_SUBTYPE_CLOCK_SOURCE = 0x0A,
91
+ UAC_CS_AC_INTERFACE_SUBTYPE_CLOCK_SELECTOR = 0x0B,
92
+ UAC_CS_AC_INTERFACE_SUBSYPE_CLOCK_MULTIPLIER = 0x0C,
93
+ UAC_CS_AC_INTERFACE_SUBTYPE_SAMPLE_RATE_CONVERTER = 0x0D
94
+ };
95
+
96
+ /* A.10 Audio Class Specific AS Interface Descriptor Subtypes */
97
+ enum UAC_CS_AS_InterfaceDescriptorSubtype_t
98
+ {
99
+ UAC_CS_AS_INTERFACE_SUBTYPE_UNDEFINED = 0x00,
100
+ UAC_CS_AS_INTERFACE_SUBTYPE_AS_GENERAL = 0x01,
101
+ UAC_CS_AS_INTERFACE_SUBTYPE_FORMAT_TYPE = 0x02,
102
+ UAC_CS_AS_INTERFACE_SUBTYPE_ENCODER = 0x03,
103
+ UAC_CS_AS_INTERFACE_SUBTYPE_DECODER = 0x04
104
+ };
105
+
106
+ /* A.11 Effect Unit Effect Types */
107
+ #define EFFECT_UNDEFINED 0x00
108
+ #define PARAM_EQ_SECTION_EFFECT 0x01
109
+ #define REVERBERATION_EFFECT 0x02
110
+ #define MOD_DELAY_EFFECT 0x03
111
+ #define DYN_RANGE_COMP_EFFECT 0x04
112
+
113
+ /* A.12 Processing Unit Process Types */
114
+ #define PROCESS_UNDEFINED 0x00
115
+ #define UP_DOWNMIX_PROCESS 0x01
116
+ #define DOLBY_PROLOGIC_PROCESS 0x02
117
+ #define STEREO_EXTENDER_PROCESS 0x03
118
+
119
+ /* A.13 Audio Class-Specific Endpoint Descriptor Subtypes */
120
+ enum UAC_CS_EndpointDescriptorSubtype_t
121
+ {
122
+ UAC_CS_ENDPOINT_SUBTYPE_UNDEFINED = 0x00,
123
+ UAC_CS_ENDPOINT_SUBTYPE_EP_GENERAL = 0x01
124
+ };
125
+
126
+ /* A.14 Audio Class-Specific Request Codes */
127
+ #define REQUEST_CODE_UNDEFINED 0x00
128
+ #define CUR 0x01
129
+ #define RANGE 0x02
130
+ #define MEM 0x03
131
+
132
+ /* A.15 Encoder Type Codes */
133
+ #define ENCODER_UNDEFINED 0x00
134
+ #define OTHER_ENCODER 0x01
135
+ #define MPEG_ENCODER 0x02
136
+ #define AC_3_ENCODER 0x03
137
+ #define WMA_ENCODER 0x04
138
+ #define DTS_ENCODER 0x05
139
+
140
+ /* A.17 Control Selector Codes */
141
+ /* A.17.1 Clock Source Control Selectors */
142
+ #define CS_CONTROL_UNDEFINED 0x00
143
+ #define CS_SAM_FREQ_CONTROL 0x01
144
+ #define CS_CLOCK_VALID_CONTROL 0x02
145
+
146
+ /* A.17.2 Clock Selector Control Selectors */
147
+ #define CX_CONTROL_UNDEFINED 0x00
148
+ #define CX_CLOCK_SELECTOR_CONTROL 0x01
149
+
150
+ /* A.17.7 Feature Unit Control Selectors */
151
+ #define FU_CONTROL_UNDEFINED 0x00
152
+ #define FU_MUTE_CONTROL 0x01
153
+ #define FU_VOLUME_CONTROL 0x02
154
+
155
+ /* A.17.11 Audio Streaming Interface Control Selectors */
156
+ #define AS_CONTROL_UNDEFINED 0x00
157
+ #define AS_ACT_ALT_SETTING_CONTROL 0x01
158
+ #define AS_VAL_ALT_SETTINGS_CONTROL 0x02
159
+ #define AS_AUDIO_DATA_FORMAT_CONTROL 0x03
160
+
161
+ #ifdef __STDC__
162
+ /* Clock Source Descriptor (Table 4-6) */
163
+ typedef struct
164
+ {
165
+ unsigned char bLength;
166
+ unsigned char bDescriptorType;
167
+ unsigned char bDescriptorSubType;
168
+ unsigned char bClockID;
169
+ unsigned char bmAttributes;
170
+ unsigned char bmControls;
171
+ unsigned char bAssocTerminal;
172
+ unsigned char iClockSource;
173
+ } __attribute__((packed)) USB_Descriptor_Audio_ClockSource_t;
174
+
175
+ /* Clock Selector Descriptor (Table 4-7) */
176
+ typedef struct
177
+ {
178
+ unsigned char bLength;
179
+ unsigned char bDescriptorType;
180
+ unsigned char bDescriptorSubType;
181
+ unsigned char bClockID;
182
+ unsigned char bNrPins;
183
+ unsigned char baCSourceId[1];
184
+ unsigned char bmControl; /* bmControls
185
+ * D[1:0] : Clock Selector Control
186
+ * D[7:4] : Reserved (0) */
187
+ unsigned char iClockSelector;
188
+
189
+ } __attribute__((packed)) USB_Descriptor_Audio_ClockSelector_1_t;
190
+
191
+ typedef struct
192
+ {
193
+ unsigned char bLength;
194
+ unsigned char bDescriptorType;
195
+ unsigned char bDescriptorSubType;
196
+ unsigned char bClockID;
197
+ unsigned char bNrPins;
198
+ unsigned char baCSourceId[2];
199
+ unsigned char bmControl; /* bmControls
200
+ * D[1:0] : Clock Selector Control
201
+ * D[7:4] : Reserved (0) */
202
+ unsigned char iClockSelector;
203
+
204
+ } __attribute__((packed)) USB_Descriptor_Audio_ClockSelector_2_t;
205
+
206
+ typedef struct
207
+ {
208
+ unsigned char bLength;
209
+ unsigned char bDescriptorType;
210
+ unsigned char bDescriptorSubType;
211
+ unsigned char bClockID;
212
+ unsigned char bNrPins;
213
+ unsigned char baCSourceId[3];
214
+ unsigned char bmControl; /* bmControls
215
+ * D[1:0] : Clock Selector Control
216
+ * D[7:4] : Reserved (0) */
217
+ unsigned char iClockSelector;
218
+
219
+ } __attribute__((packed)) USB_Descriptor_Audio_ClockSelector_3_t;
220
+
221
+ typedef struct
222
+ {
223
+ unsigned char bLength;
224
+ unsigned char bDescriptorType;
225
+ unsigned char bDescriptorSubtype;
226
+ unsigned char bFormatType; /* Format of the audio stream, see Audio Device Formats specification */
227
+ unsigned char bSubslotSize; /* Number of bytes for each channels subslot */
228
+ unsigned char bBitResolution; /* Number of bits used in the above slot for sample */
229
+ } __attribute__((packed)) USB_Descriptor_Audio_Format_Type1_t;
230
+
231
+ /* Table 4-11: Mixer Unit Descriptor */
232
+ typedef struct
233
+ {
234
+ unsigned char bLength;
235
+ unsigned char bDescriptorType;
236
+ unsigned char bDescriptorSubtype;
237
+ unsigned char bUnitID;
238
+ unsigned char bNrInPins;
239
+ unsigned char baSourceID;
240
+ unsigned char bNrChannels;
241
+ unsigned bmChannelConfig;
242
+ unsigned char iChannelNames;
243
+ unsigned char bmMixerControls[18]; /* FIXME */
244
+ unsigned char bmControls;
245
+ unsigned char iMixer;
246
+ } __attribute__((packed)) USB_Descriptor_Audio_MixerUnit_t;
247
+
248
+ /* Table 4-24: Extension Unit Descriptor */
249
+ typedef struct
250
+ {
251
+ unsigned char bLength;
252
+ unsigned char bDescriptorType;
253
+ unsigned char bDescriptorSubtype;
254
+ unsigned char bUnitID;
255
+ unsigned short wExtensionCode;
256
+ unsigned char bNrInPins;
257
+ unsigned char baSourceID[1];
258
+ unsigned char bNrChannels;
259
+ unsigned bmChannelConfig;
260
+ unsigned char iChannelNames;
261
+ unsigned char bmControls;
262
+ unsigned char iExtension;
263
+ } __attribute__((packed)) USB_Descriptor_Audio_ExtensionUnit_t;
264
+
265
+ typedef struct
266
+ {
267
+ unsigned char bLength;
268
+ unsigned char bDescriptorType;
269
+ unsigned char bDescriptorSubtype;
270
+ unsigned char bUnitID;
271
+ unsigned short wExtensionCode;
272
+ unsigned char bNrInPins;
273
+ unsigned char baSourceID[2];
274
+ unsigned char bNrChannels;
275
+ unsigned bmChannelConfig;
276
+ unsigned char iChannelNames;
277
+ unsigned char bmControls;
278
+ unsigned char iExtension;
279
+ } __attribute__((packed)) USB_Descriptor_Audio_ExtensionUnit2_t;
280
+ #endif
281
+
282
+ /***********************************************************************/
283
+ /** USB Device Class Definition for Audio Data Formats **/
284
+
285
+ /* A.1 Format Type Codes */
286
+ enum USB_audio_Fmt_FormatType_t
287
+ {
288
+ UAC_FORMAT_TYPE_UNDEFINED = 0x00,
289
+ UAC_FORMAT_TYPE_I = 0x01,
290
+ UAC_FORMAT_TYPE_II = 0x02,
291
+ UAC_FORMAT_TYPE_III = 0x03,
292
+ UAC_FORMAT_TYPE_IV = 0x04,
293
+ UAC_EXT_FORMAT_TYPE_I = 0x81,
294
+ UAC_EXT_FORMAT_TYPE_II = 0x82,
295
+ UAC_EXT_FORMAT_TYPE_III = 0x83
296
+ };
297
+
298
+ /* A.2 AudioData Format Bit Allocation in the bmFormats field */
299
+ /* A.2.1 Audio Data Format Type I Bit Allocations */
300
+ enum USB_Audio_Fmt_DataFormat_TypeI_t
301
+ {
302
+ UAC_FORMAT_TYPEI_PCM = 0x00000001,
303
+ UAC_FORMAT_TYPEI_PCM8 = 0x00000002,
304
+ UAC_FORMAT_TYPEI_IEEE_FLOAT = 0x00000004,
305
+ UAC_FORMAT_TYPEI_RAW_DATA = 0x80000000,
306
+ };
307
+
308
+ /* A.2.2 Audio Data Format Type II Bit Allocations */
309
+ enum USB_Audio_Fmt_DataFormat_TypeII_t
310
+ {
311
+ UAC_FORMAT_TYPEII_MPEG = 0x00000001,
312
+ UAC_FORMAT_TYPEII_AC3 = 0x00000002,
313
+ UAC_FORMAT_TYPEII_WMA = 0x00000004,
314
+ UAC_FORMAT_TYPEII_DTS = 0x00000008,
315
+ UAC_FORMAT_TYPEII_RAW_DATA = 0x80000000
316
+ };
317
+
318
+ /* A.3 Side Band Protocol Codes */
319
+ #define PROTOCOL_UNDEFINED 0x00
320
+ #define PRESS_TIMESTAMP_PROTOCOL 0x01
321
+
322
+ /***********************************************************************/
323
+ /* Univeral Serial Bus Device Class Definition for Terminal Types */
324
+
325
+ /* 2.1 USB Terminal Types */
326
+ /* Terminal Types that describe Terminals that handle signals carried over USB */
327
+ #define USB_TERMTYPE_UNDEFINED 0x0100
328
+ #define USB_TERMTYPE_USB_STREAMING 0x0101
329
+ #define USB_TERMTYPE_VENDOR_SPECIFIC 0x01FF
330
+
331
+ /* 2.2 Input Terminal Types */
332
+ /* Terminal Types that describe Terminals that are designed to record sounds */
333
+ enum USB_Audio_TT_InputTermType_t
334
+ {
335
+ UAC_TT_INPUT_TERMTYPE_INPUT_UNDEFINED = 0x0200,
336
+ UAC_TT_INPUT_TERMTYPE_MICROPHONE = 0x0201,
337
+ UAC_TT_INPUT_TERMTYPE_DESKTOP_MICROPHONE = 0x0202,
338
+ UAC_TT_INPUT_TERMTYPE_PERSONAL_MICROPHONE = 0x0203,
339
+ UAC_TT_INPUT_TERMTYPE_OMNIDIRECTIONAL_MICROPHONE = 0x0204,
340
+ UAC_TT_INPUT_TERMTYPE_MICROPHONE_ARRAY = 0x0205,
341
+ UAC_TT_INPUT_TERMTYPE_PROCESSING_MICROPHONE_ARRAY = 0x0206
342
+ };
343
+
344
+ /* 2.3 Output Terminal Types */
345
+ /* These Terminal Types describe Terminals that produce audible signals that are intended to
346
+ * be heard by the user of the audio function */
347
+ enum USB_Audio_TT_OutputTermType_t
348
+ {
349
+ UAC_TT_OUTPUT_TERMTYPE_SPEAKER = 0x0301,
350
+ UAC_TT_OUTPUT_TERMTYPE_HEADPHONES = 0x0302,
351
+ UAC_TT_OUTPUT_TERMTYPE_HEAD_MOUNTED_DISPLAY = 0x0303,
352
+ UAC_TT_OUTPUT_TERMTYPE_DESKTOP_SPEAKER = 0x0304,
353
+ UAC_TT_OUTPUT_TERMTYPE_ROOM_SPEAKER = 0x0305,
354
+ UAC_TT_OUTPUT_TERMTYPE_COMMUNICATION_SPEAKER = 0x0306,
355
+ UAC_TT_OUTPUT_TERMTYPE_LOW_FREQ_EFFECTS_SPEAKER = 0x0307
356
+ };
357
+ #endif
@@ -0,0 +1,168 @@
1
+ // Copyright 2017-2021 XMOS LIMITED.
2
+ // This Software is subject to the terms of the XMOS Public Licence: Version 1.
3
+
4
+ #ifndef _USBAUDIOCOMMON_H_
5
+ #define _USBAUDIOCOMMON_H_
6
+
7
+ #include "xud_conf_default.h"
8
+
9
+ #ifdef __STDC__
10
+ typedef struct
11
+ {
12
+ unsigned char bLength; /* Size of descriptor (bytes) */
13
+ unsigned char bDescriptorType;
14
+ unsigned char bDescriptorSubtype;
15
+ unsigned short bcdADC; /* Binary coded decimal indicating the supported Audio Class version */
16
+ unsigned char bCatagory; /* Primary use of this audio function. See Audio Function Category Codes */
17
+ unsigned short wTotalLength; /* Total length of the Audio class-specific descriptors, including this descriptor */
18
+ unsigned char bmControls; /* D[1:0]: Latency control. D[7:2]: Reserved. Must be set to 0 */
19
+ } __attribute__((packed)) UAC_Descriptor_Interface_AC_t;
20
+
21
+ /* Table 4-9: Input Terminal Descriptor */
22
+ typedef struct
23
+ {
24
+ unsigned char bLength; /* Size of the descriptor (bytes) */
25
+ unsigned char bDescriptorType;
26
+ unsigned char bDescriptorSubtype;
27
+ unsigned char bTerminalID; /* Unique ID of this terminal unit */
28
+ unsigned short wTerminalType;
29
+ unsigned char bAssocTerminal; /* ID of associated output terminal, for physically grouped terminals
30
+ * such as the speaker and microphone of a phone handset */
31
+ unsigned char bCSourceID; /* ID of the clock entity to which this Input Terminal is connected */
32
+ unsigned char bNrChannels; /* Number of logicial output channels in the Terminal's
33
+ output audio channel cluster */
34
+ unsigned bmChannelConfig; /* Channel layout supported by this terminal */
35
+ unsigned char iChannelNames; /* Index in string table describing channels (points to first channel) */
36
+ unsigned short bmControls; /* Bitmap */
37
+ unsigned char iTerminal; /* Index of string descriptor describing this terminal */
38
+ } __attribute__((packed))USB_Descriptor_Audio_InputTerminal_t;
39
+
40
+ #if 0
41
+ //UAC 1.0 version
42
+ typedef struct
43
+ {
44
+ unsigned char bLength; /* Size of the descriptor (bytes) */
45
+ unsigned char bDescriptorType;
46
+ unsigned char bDescriptorSubtype;
47
+ unsigned char bTerminalID; /* Unique ID of this terminal unit */
48
+ unsigned short wTerminalType;
49
+ unsigned char bAssocTerminal; /* ID of associated output terminal, for physically grouped terminals
50
+ * such as the speaker and microphone of a phone handset */
51
+ unsigned char bNrChannels; /* Total number of separate audio channels within this interface */
52
+ unsigned short wChannelConfig; /* Channel layout supported by this terminal */
53
+ unsigned char iChannelNames; /* Index in string table describing channels (points to first channel */
54
+ unsigned char iTerminal; /* Index of string descriptor describing this terminal */
55
+ } USB_Descriptor_Audio_InputTerminal_t;
56
+ #endif
57
+
58
+ /* Table 4-10: Output Terminal Descriptor */
59
+ typedef struct
60
+ {
61
+ unsigned char bLength;
62
+ unsigned char bDescriptorType;
63
+ unsigned char bDescriptorSubtype;
64
+ unsigned char bTerminalID;
65
+ unsigned short wTerminalType;
66
+ unsigned char bAssocTerminal;
67
+ unsigned char bSourceID;
68
+ unsigned char bCSourceID;
69
+ unsigned short bmControls;
70
+ unsigned char iTerminal;
71
+ } __attribute__((packed)) USB_Descriptor_Audio_OutputTerminal_t;
72
+
73
+ #if 0
74
+ /* UAC 1.0 Version */
75
+ typedef struct
76
+ {
77
+ unsigned char bLength;
78
+ unsigned char bDescriptorType;
79
+ unsigned char bDescriptorSubtype;
80
+ unsigned char bTerminalID;
81
+ unsigned short wTerminalType;
82
+ unsigned char bAssocTerminal;
83
+ unsigned char bSourceID;
84
+ unsigned char iTerminal;
85
+ } USB_Descriptor_Audio_OutputTerminal_t;
86
+ #endif
87
+
88
+ /* Note, we need seperate _out and _in structs due to varying channel count */
89
+ /* Table 4-13: Feature Unit Descriptor */
90
+ typedef struct
91
+ {
92
+ unsigned char bLength;
93
+ unsigned char bDescriptorType;
94
+ unsigned char bDescriptorSubtype;
95
+ unsigned char bUnitID; /* Unique ID for this feature unit */
96
+ unsigned char bSourceID; /* Source ID value of the audio source input into this feature unit */
97
+ unsigned bmaControls[NUM_USB_CHAN_OUT+1]; /* Feature masks for the control channel, and each separate audio channel */
98
+ unsigned char iFeature; /* String table index describing this feature unit */
99
+ } __attribute__((packed)) USB_Descriptor_Audio_FeatureUnit_Out_t;
100
+
101
+ typedef struct
102
+ {
103
+ unsigned char bLength;
104
+ unsigned char bDescriptorType;
105
+ unsigned char bDescriptorSubtype;
106
+ unsigned char bUnitID; /* Unique ID for this feature unit */
107
+ unsigned char bSourceID; /* Source ID value of the audio source input into this feature unit */
108
+ unsigned bmaControls[NUM_USB_CHAN_IN+1]; /* Feature masks for the control channel, and each separate audio channel */
109
+ unsigned char iFeature; /* String table index describing this feature unit */
110
+ } __attribute__((packed)) USB_Descriptor_Audio_FeatureUnit_In_t;
111
+
112
+ typedef struct
113
+ {
114
+ unsigned char bLength;
115
+ unsigned char bDescriptorType;
116
+ unsigned char bDescriptorSubType;
117
+ unsigned char bTerminalLink;
118
+ unsigned char bmControls;
119
+ unsigned char bFormatType;
120
+ unsigned bmFormats;
121
+ unsigned char bNrChannels;
122
+ unsigned bmChannelConfig;
123
+ unsigned char iChannelNames;
124
+ } __attribute__((packed)) USB_Descriptor_Audio_Interface_AS_t;
125
+
126
+ #if 0
127
+ /* UAC1 Version */
128
+ typedef struct
129
+ {
130
+ unsigned char bLength;
131
+ unsigned char bDescriptorType;
132
+ unsigned char bDescriptorSubType;
133
+ unsigned char bTerminalLink;
134
+ unsigned char bmControls;
135
+ unsigned char bFormatType;
136
+ unsigned bmFormats;
137
+ unsigned char bNrChannels;
138
+ unsigned char bmChannelConfig;
139
+ } __attribute__((packed)) USB_Descriptor_Audio_Interface_AS_t;
140
+ #endif
141
+
142
+ typedef struct
143
+ {
144
+ unsigned char bLength;
145
+ unsigned char bDescriptorType;
146
+ unsigned char bDescriptorSubtype;
147
+ unsigned char bmAttributes;
148
+ unsigned char bmControls;
149
+ unsigned char bLockDelayUnits;
150
+ unsigned short wLockDelay;
151
+ } __attribute__((packed)) USB_Descriptor_Audio_Class_AS_Endpoint_t;
152
+
153
+ #if 0
154
+ /* UAC1.0 Version */
155
+ typedef struct
156
+ {
157
+ unsigned char bLength;
158
+ unsigned char bDescriptorType;
159
+ unsigned char bDescriptorSubtype;
160
+ unsigned char bmAttributes;
161
+ unsigned char bLockDelayUnits;
162
+ unsigned short wLockDelay;
163
+ } __attribute__((packed)) USB_Descriptor_Audio_Class_AS_Endpoint_t;
164
+ #endif
165
+ #endif
166
+ #endif
167
+
168
+
@@ -0,0 +1,25 @@
1
+ /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
14
+ ==============================================================================*/
15
+
16
+ #ifndef SIGNAL_MICRO_KERNELS_DELAY_FLEXBUFFERS_GENERATED_DATA_H_
17
+ #define SIGNAL_MICRO_KERNELS_DELAY_FLEXBUFFERS_GENERATED_DATA_H_
18
+
19
+ extern const int g_gen_data_size_3_delay;
20
+ extern const unsigned char g_gen_data_3_delay[];
21
+
22
+ extern const int g_gen_data_size_5_delay;
23
+ extern const unsigned char g_gen_data_5_delay[];
24
+
25
+ #endif // SIGNAL_MICRO_KERNELS_DELAY_FLEXBUFFERS_GENERATED_DATA_H_
@@ -0,0 +1,28 @@
1
+ /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
14
+ ==============================================================================*/
15
+
16
+ #ifndef SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_ENERGY_FLEXBUFFERS_DATA_H_
17
+ #define SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_ENERGY_FLEXBUFFERS_DATA_H_
18
+
19
+ extern const int g_gen_data_size_start_index_2_end_index_4;
20
+ extern const unsigned char g_gen_data_start_index_2_end_index_4[];
21
+
22
+ extern const int g_gen_data_size_start_index_0_end_index_4;
23
+ extern const unsigned char g_gen_data_start_index_0_end_index_4[];
24
+
25
+ extern const int g_gen_data_size_start_index_4_end_index_8;
26
+ extern const unsigned char g_gen_data_start_index_4_end_index_8[];
27
+
28
+ #endif // SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_ENERGY_FLEXBUFFERS_DATA_H_
@@ -0,0 +1,37 @@
1
+ /* Copyright 2023 The TensorFlow Authors. All Rights Reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
14
+ ==============================================================================*/
15
+
16
+ #ifndef SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FFT_FLEXBUFFERS_DATA_H_
17
+ #define SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FFT_FLEXBUFFERS_DATA_H_
18
+
19
+ extern const int g_gen_data_size_fft_length_64_float;
20
+ extern const unsigned char g_gen_data_fft_length_64_float[];
21
+
22
+ extern const int g_gen_data_size_fft_length_64_int16;
23
+ extern const unsigned char g_gen_data_fft_length_64_int16[];
24
+
25
+ extern const int g_gen_data_size_fft_length_64_int32;
26
+ extern const unsigned char g_gen_data_fft_length_64_int32[];
27
+
28
+ extern const int g_gen_data_size_fft_length_512_float;
29
+ extern const unsigned char g_gen_data_fft_length_512_float[];
30
+
31
+ extern const int g_gen_data_size_fft_length_512_int16;
32
+ extern const unsigned char g_gen_data_fft_length_512_int16[];
33
+
34
+ extern const int g_gen_data_size_fft_length_512_int32;
35
+ extern const unsigned char g_gen_data_fft_length_512_int32[];
36
+
37
+ #endif // SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FFT_FLEXBUFFERS_DATA_H_
@@ -0,0 +1,25 @@
1
+ /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
14
+ ==============================================================================*/
15
+
16
+ #ifndef SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_FLEXBUFFERS_DATA_H_
17
+ #define SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_FLEXBUFFERS_DATA_H_
18
+
19
+ extern const int g_gen_data_size_filter_bank_32_channel;
20
+ extern const unsigned char g_gen_data_filter_bank_32_channel[];
21
+
22
+ extern const int g_gen_data_size_filter_bank_16_channel;
23
+ extern const unsigned char g_gen_data_filter_bank_16_channel[];
24
+
25
+ #endif // SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_FLEXBUFFERS_DATA_H_
@@ -0,0 +1,27 @@
1
+ /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
14
+ ==============================================================================*/
15
+
16
+ #ifndef SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_LOG_FLEXBUFFERS_DATA_H_
17
+ #define SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_LOG_FLEXBUFFERS_DATA_H_
18
+
19
+ extern const int g_gen_data_size_filter_bank_log_scale_1600_correction_bits_3;
20
+ extern const unsigned char
21
+ g_gen_data_filter_bank_log_scale_1600_correction_bits_3[];
22
+
23
+ extern const int g_gen_data_size_filter_bank_log_scale_32768_correction_bits_5;
24
+ extern const unsigned char
25
+ g_gen_data_filter_bank_log_scale_32768_correction_bits_5[];
26
+
27
+ #endif // SIGNAL_MICRO_KERNELS_TEST_DATA_GENERATION_GENERATE_FILTER_BANK_LOG_FLEXBUFFERS_DATA_H_