MMEMode.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*====================================================================*
  2. *
  3. * Copyright (c) 2013 Qualcomm Atheros, Inc.
  4. *
  5. * All rights reserved.
  6. *
  7. *====================================================================*/
  8. /*====================================================================*
  9. *
  10. * char const * MMEMode (uint16_t MMTYPE);
  11. *
  12. * mme.h
  13. *
  14. * Return the mneumoic associates with a HomePlug AV MME mode; All
  15. * HomePlug AV message types permit four variants, as follows, but
  16. * not all messages implement all four.
  17. *
  18. * REQ unsolicited request from host to device;
  19. * CNF solicited response from device to host;
  20. * IND unsolicited request from device to host;
  21. * RSP solicited responds from host to device;
  22. *
  23. *
  24. * Contributor(s):
  25. * Charles Maier <cmaier@qca.qualcomm.com>
  26. *
  27. *--------------------------------------------------------------------*/
  28. #ifndef MMEMODE_SOURCE
  29. #define MMEMODE_SOURCE
  30. #include <stdint.h>
  31. #include "../mme/mme.h"
  32. static char const * mme_modes [] =
  33. {
  34. "REQ",
  35. "CNF",
  36. "IND",
  37. "RSP"
  38. };
  39. char const * MMEMode (uint16_t MMTYPE)
  40. {
  41. return (mme_modes [MMTYPE & MMTYPE_MODE]);
  42. }
  43. #endif