pando_event.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*******************************************************
  2. * File name: pando_event.h
  3. * Author: wfq
  4. * Versions: 1.0
  5. * Description: pando object interfaces
  6. * History:
  7. * 1.Date: Jan 14, 2016
  8. * Author: wfq
  9. * Create:
  10. *********************************************************/
  11. #ifndef PANDO_EVENT_H_
  12. #define PANDO_EVENT_H_
  13. #include "../platform/include/pando_types.h"
  14. //#include "../protocol/sub_device_protocol.h"
  15. typedef struct TLVs PARAMS;
  16. typedef struct {
  17. uint8_t no;
  18. uint8_t priority;
  19. void (*pack)(PARAMS*);
  20. }pd_event;
  21. /******************************************************************************
  22. * FunctionName : register_pando_event.
  23. * Description : register a pando event to framework.
  24. * Parameters : a pando event.
  25. * Returns : none.
  26. *******************************************************************************/
  27. void register_pando_event(pd_event event);
  28. /******************************************************************************
  29. * FunctionName : find_pando_event.
  30. * Description : find a pando event by event no.
  31. * Parameters : the event no.
  32. * Returns : the pando event of specified no, NULL if not found.
  33. *******************************************************************************/
  34. pd_event* find_pando_event(uint8_t no);
  35. #endif /* PANDO_EVENT_H_ */