rt_ai.h 787 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-04-01 liqiwen the first version
  9. */
  10. #ifndef _RT_AI_H
  11. #define _RT_AI_H
  12. #ifdef __cplusplus
  13. extern "C"{
  14. #endif
  15. #include <rt_ai_def.h>
  16. #include <rt_ai_common.h>
  17. rt_err_t rt_ai_register(rt_ai_t ai, const char *name, rt_uint16_t flags,int (*call)(void *arg), void *arg);
  18. rt_err_t rt_ai_init(rt_ai_t ai, rt_ai_buffer_t* work_buf);
  19. rt_err_t rt_ai_run(rt_ai_t ai, void (*callback)(void * arg), void *arg);
  20. rt_ai_t rt_ai_find(const char *name);
  21. rt_ai_buffer_t* rt_ai_output(rt_ai_t ai, rt_uint32_t index);
  22. rt_err_t rt_ai_config(rt_ai_t ai, int cmd, rt_ai_buffer_t *arg);
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif // _RT_AI_H