Skip to content
Snippets Groups Projects
Commit f52efef0 authored by Hyungsin's avatar Hyungsin
Browse files

netopt: Add NETOPT_ACK_PENDING

parent a841d9ee
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,11 @@ extern "C" { ...@@ -53,6 +53,11 @@ extern "C" {
* @brief request ACK from receiver * @brief request ACK from receiver
*/ */
#define NETDEV_IEEE802154_ACK_REQ (IEEE802154_FCF_ACK_REQ) #define NETDEV_IEEE802154_ACK_REQ (IEEE802154_FCF_ACK_REQ)
/**
* @brief set frame pending bit
*/
#define NETDEV_IEEE802154_FRAME_PEND (IEEE802154_FCF_FRAME_PEND)
/** /**
* @} * @}
*/ */
......
...@@ -147,6 +147,12 @@ typedef enum { ...@@ -147,6 +147,12 @@ typedef enum {
* the current state */ * the current state */
NETOPT_AUTOACK, /**< en/disable link layer auto ACKs or read NETOPT_AUTOACK, /**< en/disable link layer auto ACKs or read
* the current state */ * the current state */
NETOPT_ACK_PENDING, /**< en/disable the frame pending bit of ACKs.
* This bit is copied into the frame pending
* subfield of the ACK if it is the response
* to a data request MAC command frame, which
* lets the data request sender know if the ACK
* sender has pending data or not. */
NETOPT_ACK_REQ, /**< en/disable acknowledgement requests or NETOPT_ACK_REQ, /**< en/disable acknowledgement requests or
* read the current state */ * read the current state */
NETOPT_RETRANS, /**< get/set the maximum number of NETOPT_RETRANS, /**< get/set the maximum number of
......
...@@ -45,6 +45,7 @@ static const char *_netopt_strmap[] = { ...@@ -45,6 +45,7 @@ static const char *_netopt_strmap[] = {
[NETOPT_PRELOADING] = "NETOPT_PRELOADING", [NETOPT_PRELOADING] = "NETOPT_PRELOADING",
[NETOPT_PROMISCUOUSMODE] = "NETOPT_PROMISCUOUSMODE", [NETOPT_PROMISCUOUSMODE] = "NETOPT_PROMISCUOUSMODE",
[NETOPT_AUTOACK] = "NETOPT_AUTOACK", [NETOPT_AUTOACK] = "NETOPT_AUTOACK",
[NETOPT_ACK_PENDING] = "NETOPT_ACK_PENDING",
[NETOPT_ACK_REQ] = "NETOPT_ACK_REQ", [NETOPT_ACK_REQ] = "NETOPT_ACK_REQ",
[NETOPT_RETRANS] = "NETOPT_RETRANS", [NETOPT_RETRANS] = "NETOPT_RETRANS",
[NETOPT_PROTO] = "NETOPT_PROTO", [NETOPT_PROTO] = "NETOPT_PROTO",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment