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.

tracker_utils.h 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. /**
  2. * @file task_mbox.c
  3. *
  4. * @brief
  5. * MSS main implementation of the millimeter wave Demo
  6. *
  7. * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions
  11. * are met:
  12. *
  13. * Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions and the following disclaimer.
  15. *
  16. * Redistributions in binary form must reproduce the above copyright
  17. * notice, this list of conditions and the following disclaimer in the
  18. * documentation and/or other materials provided with the
  19. * distribution.
  20. *
  21. * Neither the name of Texas Instruments Incorporated nor the names of
  22. * its contributors may be used to endorse or promote products derived
  23. * from this software without specific prior written permission.
  24. *
  25. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  26. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  27. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  28. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  29. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  30. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  31. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  32. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  33. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  34. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  35. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  36. */
  37. /**************************************************************************
  38. *************************** Include Files ********************************
  39. **************************************************************************/
  40. /* Standard Include Files. */
  41. #include <stdint.h>
  42. #include <stdlib.h>
  43. #include <stddef.h>
  44. #include <string.h>
  45. #include <stdio.h>
  46. #include <math.h>
  47. /**************************************************************************
  48. *************************** Local Definitions ****************************
  49. **************************************************************************/
  50. /**************************************************************************
  51. *************************** Global Definitions ***************************
  52. **************************************************************************/
  53. void *gtrack_alloc(unsigned int numElements, unsigned int sizeInBytes);
  54. void gtrack_free(void *pFree, unsigned int sizeInBytes);
  55. /**
  56. * @b Description
  57. * @n
  58. * This is the CLI Handler for tracking configuration
  59. *
  60. * @param[in] argc
  61. * Number of arguments
  62. * @param[in] argv
  63. * Arguments
  64. *
  65. * @retval
  66. * Success - 0
  67. * @retval
  68. * Error - <0
  69. */
  70. int32_t MmwDemo_CLITrackingCfg (int32_t argc, char* argv[]);
  71. /**
  72. * @b Description
  73. * @n
  74. * This is the CLI Handler for static boundary box configuration
  75. *
  76. * @param[in] argc
  77. * Number of arguments
  78. * @param[in] argv
  79. * Arguments
  80. *
  81. * @retval
  82. * Success - 0
  83. * @retval
  84. * Error - <0
  85. */
  86. int32_t MmwDemo_CLIStaticBoundaryBoxCfg (int32_t argc, char* argv[]);
  87. /**
  88. * @b Description
  89. * @n
  90. * This is the CLI Handler for boundary box configuration
  91. *
  92. * @param[in] argc
  93. * Number of arguments
  94. * @param[in] argv
  95. * Arguments
  96. *
  97. * @retval
  98. * Success - 0
  99. * @retval
  100. * Error - <0
  101. */
  102. int32_t MmwDemo_CLIBoundaryBoxCfg (int32_t argc, char* argv[]);
  103. /**
  104. * @b Description
  105. * @n
  106. * This is the CLI Handler for sensor position and orientation configuration
  107. *
  108. * @param[in] argc
  109. * Number of arguments
  110. * @param[in] argv
  111. * Arguments
  112. *
  113. * @retval
  114. * Success - 0
  115. * @retval
  116. * Error - <0
  117. */
  118. int32_t MmwDemo_CLISensorPositionCfg (int32_t argc, char* argv[]);
  119. /**
  120. * @b Description
  121. * @n
  122. * This is the CLI Handler for GatingParam configuration
  123. *
  124. * @param[in] argc
  125. * Number of arguments
  126. * @param[in] argv
  127. * Arguments
  128. *
  129. * @retval
  130. * Success - 0
  131. * @retval
  132. * Error - <0
  133. */
  134. int32_t MmwDemo_CLIGatingParamCfg (int32_t argc, char* argv[]);
  135. /**
  136. * @b Description
  137. * @n
  138. * This is the CLI Handler for StateParam configuration
  139. *
  140. * @param[in] argc
  141. * Number of arguments
  142. * @param[in] argv
  143. * Arguments
  144. *
  145. * @retval
  146. * Success - 0
  147. * @retval
  148. * Error - <0
  149. */
  150. int32_t MmwDemo_CLIStateParamCfg (int32_t argc, char* argv[]);
  151. /**
  152. * @b Description
  153. * @n
  154. * This is the CLI Handler for AllocationParam configuration
  155. *
  156. * @param[in] argc
  157. * Number of arguments
  158. * @param[in] argv
  159. * Arguments
  160. *
  161. * @retval
  162. * Success - 0
  163. * @retval
  164. * Error - <0
  165. */
  166. int32_t MmwDemo_CLIAllocationParamCfg (int32_t argc, char* argv[]);
  167. /**
  168. * @b Description
  169. * @n
  170. * This is the CLI Handler for tracker Acceleration configuration
  171. *
  172. * @param[in] argc
  173. * Number of arguments
  174. * @param[in] argv
  175. * Arguments
  176. *
  177. * @retval
  178. * Success - 0
  179. * @retval
  180. * Error - <0
  181. */
  182. int32_t MmwDemoCLIMaxAccelerationParamCfg(int32_t argc, char* argv[]);
  183. /**
  184. * @b Description
  185. * @n
  186. * This is the CLI Handler for PresenceParam configuration
  187. *
  188. * @param[in] argc
  189. * Number of arguments
  190. * @param[in] argv
  191. * Arguments
  192. *
  193. * @retval
  194. * Success - 0
  195. * @retval
  196. * Error - <0
  197. */
  198. int32_t MmwDemo_CLIPresenceParamCfg (int32_t argc, char* argv[]);