pando_subdevice.h 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. /*******************************************************
  2. * File name: pando_subdevice.h
  3. * Author: razr
  4. * Versions: 1.0
  5. * Description:This module is to used to handle subdevice logic.
  6. * History:
  7. * 1.Date: Sep 11, 2015
  8. * Author: razr
  9. * Modification: initial code
  10. *********************************************************/
  11. #ifndef PANDO_SUBDEVICE_H_
  12. #define PANDO_SUBDEVICE_H_
  13. #include "pando_types.h"
  14. /******************************************************************************
  15. * FunctionName : pando_subdevice_recv.
  16. * Description : process buffer receive from channel.
  17. * Parameters : the buffer and length from channel.
  18. * Returns : none.
  19. *******************************************************************************/
  20. void pando_subdevice_recv(uint8_t * buffer, uint16_t length);
  21. /******************************************************************************
  22. * FunctionName : report_event.
  23. * Description : report the specify event.
  24. * Parameters : no: the event no.
  25. * Returns : none.
  26. *******************************************************************************/
  27. void report_event(uint8_t no);
  28. void report_status(void);
  29. #endif /* PANDO_SUBDEVICE_H_ */