netopt: Add NETOPT_ACK_PENDING

This commit is contained in:
Hyungsin 2018-01-31 11:58:48 -08:00
parent a841d9ee0a
commit f52efef0d5
3 changed files with 12 additions and 0 deletions

View File

@ -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)
/** /**
* @} * @}
*/ */

View File

@ -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

View File

@ -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",