mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
include/net/ieee802154.h: Trivial update, mostly to comments.
This commit is contained in:
@@ -63,12 +63,9 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* See include/uttx/wireless/ieee802154/ieee802154_mac.h for address
|
/* See include/uttx/wireless/ieee802154/ieee802154_mac.h for address
|
||||||
* definitions. Particularly,
|
* definitions. Particularly, enum ieee802154_addrmode_e, the address type
|
||||||
*
|
*
|
||||||
* enum ieee802154_addrmode_e : Address type
|
* See also the definitions above for portable union selectors.
|
||||||
* struct ieee802154_addr_s : IEEE 802.15.4 address
|
|
||||||
*
|
|
||||||
* See definitions above for portable union selectors.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct ieee802154_addr_s
|
struct ieee802154_addr_s
|
||||||
@@ -78,8 +75,8 @@ struct ieee802154_addr_s
|
|||||||
uint8_t s_panid[IEEE802154_PANIDSIZE]; /* PAN identifier */
|
uint8_t s_panid[IEEE802154_PANIDSIZE]; /* PAN identifier */
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
uint8_t saddr[IEEE802154_SADDRSIZE]; /* short address */
|
uint8_t saddr[IEEE802154_SADDRSIZE]; /* Short address */
|
||||||
uint8_t eaddr[IEEE802154_EADDRSIZE]; /* extended address */
|
uint8_t eaddr[IEEE802154_EADDRSIZE]; /* Extended address */
|
||||||
} s_u;
|
} s_u;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -88,13 +85,13 @@ struct ieee802154_addr_s
|
|||||||
* bind() - Associates local address with socket
|
* bind() - Associates local address with socket
|
||||||
* connect() - Associates a remote address with the socket (for send())
|
* connect() - Associates a remote address with the socket (for send())
|
||||||
* sendto() - Send to specified remote address
|
* sendto() - Send to specified remote address
|
||||||
* recvfrom()- Receive from specific remote address.
|
* recvfrom()- Receive from specified remote address.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct sockaddr_ieee802154_s
|
struct sockaddr_ieee802154_s
|
||||||
{
|
{
|
||||||
sa_family_t sa_family; /* AF_IEEE802154 */
|
sa_family_t sa_family; /* AF_IEEE802154 */
|
||||||
uint8_t s_msdu_handle; /* Data carried with MSDU */
|
uint8_t sa_msdu_handle; /* Data carried with MSDU */
|
||||||
struct ieee802154_addr_s sa_addr; /* Radio address */
|
struct ieee802154_addr_s sa_addr; /* Radio address */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user