rpc_hello.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _RPC_HELLO_H_
  13. #define _RPC_HELLO_H_
  14. #include <stdint.h>
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. /**
  19. * @brief trivial function to return the input parameter
  20. *
  21. * The function itself is boring. It is intended to be added to RPC
  22. * function list. And it can be called by peers. It is just for debug
  23. * purpose.
  24. *
  25. * @param n input integer
  26. * @return input plus 'A'
  27. */
  28. uint32_t rpcHelloOnAP(uint32_t n);
  29. /**
  30. * @brief trivial function to return the input parameter
  31. *
  32. * The function itself is boring. The *real* function is located in
  33. * CP, and when this API is called in AP, it will be sent to CP
  34. * through (the default) RPC channel.
  35. *
  36. * @param n input integer
  37. * @return input plus 'C'
  38. */
  39. uint32_t rpcHelloOnCP(uint32_t n);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif