Add Rime address macros
This commit is contained in:
parent
c3c8f8ed31
commit
ae5b5ae431
@ -124,6 +124,9 @@ endif # NET_6LOWPAN_COMPRESSION_HC06
|
||||
config NET_6LOWPAN_RIMEADDR_SIZE
|
||||
int "Rime address size"
|
||||
default 2
|
||||
range 2 8
|
||||
---help---
|
||||
Only the values 2 and 8 are supported
|
||||
|
||||
config NET_SIXLOWPAN_MAXAGE
|
||||
int "Packet reassembly timeout"
|
||||
|
@ -45,10 +45,24 @@
|
||||
|
||||
#ifdef CONFIG_NET_6LOWPAN
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Rime addres macros */
|
||||
|
||||
#define rimeaddr_copy(dest,src) \
|
||||
memcpy(dest, src, CONFIG_NET_6LOWPAN_RIMEADDR_SIZE)
|
||||
|
||||
#define rimeaddr_cmp(addr1,addr2) \
|
||||
(memcmp(addr1, addr2, CONFIG_NET_6LOWPAN_RIMEADDR_SIZE) == 0)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/* Rime address representation */
|
||||
|
||||
struct rimeaddr_s
|
||||
{
|
||||
uint8_t u8[CONFIG_NET_6LOWPAN_RIMEADDR_SIZE];
|
||||
|
Loading…
x
Reference in New Issue
Block a user