simple interface for managing node id More...
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | nodeid_t |
Functions | |
void | co_id_set_from_mac (const unsigned char *mac, int mac_size) |
sets node id using last four bytes of device's MAC address More... | |
void | co_id_set_from_int (const uint32_t n) |
Converts node id from host byte order to network byte order. More... | |
nodeid_t | co_id_get (void) |
Returns nodeid. | |
Detailed Description
simple interface for managing node id
Function Documentation
void co_id_set_from_int | ( | const uint32_t | n | ) |
Converts node id from host byte order to network byte order.
- Parameters
-
n the node id (4 bytes)
Referenced by main().
void co_id_set_from_mac | ( | const unsigned char * | mac, |
int | mac_size | ||
) |
sets node id using last four bytes of device's MAC address
- Parameters
-
mac the MAC address of the device mac_size the size of the MAC address
Generated on Fri Jun 6 2014 13:22:05 for commotiond by 1.8.7