12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /*====================================================================*
- *
- * Copyright (c) 2013 Qualcomm Atheros, Inc.
- *
- * All rights reserved.
- *
- *====================================================================*/
- /*====================================================================*
- *
- * signed HomePlugHeader (struct homeplug_hdr * header, uint8_t MMV, uint16_t MMTYPE);
- *
- * mme.h
- *
- * encode memory with a standard HomePlug AV header having HomePlug
- * protocol version (HOMEPLUG_MMV) and HomePlug message type (MMTYPE);
- * return the number of bytes actually encoded;
- *
- * Contributor(s):
- * Charles Maier <cmaier@qca.qualcomm.com>
- *
- *--------------------------------------------------------------------*/
- #ifndef HOMEPLUGHEADER_SOURCE
- #define HOMEPLUGHEADER_SOURCE
- #include <stdint.h>
- #include "../mme/mme.h"
- #include "../tools/endian.h"
- signed HomePlugHeader (struct homeplug_hdr * header, uint8_t MMV, uint16_t MMTYPE)
- {
- header->MMV = MMV;
- header->MMTYPE = HTOLE16 (MMTYPE);
- return (sizeof (* header));
- }
- #endif
|