Helper class used to craft the transmission options bitmap used by the APSDE-DATA.request. More...
#include "zigbee-aps.h"
Collaboration diagram for ns3::zigbee::ZigbeeApsTxOptions:Public Member Functions | |
| ZigbeeApsTxOptions (uint8_t value=0) | |
| The constructor of the Tx options class. | |
| uint8_t | GetTxOptions () const |
| Get the complete bitmap containing the Tx options. | |
| bool | IsAckRequired () const |
| Show if the ACK bit of the Tx options is present. | |
| bool | IsFragmentationPermitted () const |
| Show if the fragmentation permitted bit of the Tx options is present. | |
| bool | IsIncludeExtendedNonce () const |
| Show if the include extended nonce bit of the Tx options is present. | |
| bool | IsSecurityEnabled () const |
| Show if the security enable bit of the Tx options is present. | |
| bool | IsUseNwkKey () const |
| Show if the use network key bit of the Tx options is present. | |
| void | SetAckRequired (bool enable) |
| Set the Acknowledgement required bit of the Tx options. | |
| void | SetFragmentationPermitted (bool enable) |
| Set the fragmentation bit of the Tx options. | |
| void | SetIncludeExtendedNonce (bool enable) |
| Set the include extended nonce bit of the Tx options. | |
| void | SetSecurityEnabled (bool enable) |
| Set the security enable bit of the TX options. | |
| void | SetUseNwkKey (bool enable) |
| Set the use network key bit of the TX options. | |
Private Member Functions | |
| bool | GetBit (int pos) const |
| Get the value of the bit at the position indicated. | |
| void | SetBit (int pos, bool value) |
| Set a bit value into a position in the uint8_t representint the Tx options. | |
Private Attributes | |
| uint8_t | m_txOptions |
| the bitmap representing the Tx options | |
Helper class used to craft the transmission options bitmap used by the APSDE-DATA.request.
Definition at line 619 of file zigbee-aps.h.
| ns3::zigbee::ZigbeeApsTxOptions::ZigbeeApsTxOptions | ( | uint8_t | value = 0 | ) |
The constructor of the Tx options class.
| value | The value to set in the Tx options. |
Definition at line 678 of file zigbee-aps.cc.
References m_txOptions.
|
private |
Get the value of the bit at the position indicated.
| pos | The position in the uint8_t Tx options |
Definition at line 763 of file zigbee-aps.cc.
References m_txOptions.
Referenced by IsAckRequired(), IsFragmentationPermitted(), IsIncludeExtendedNonce(), IsSecurityEnabled(), and IsUseNwkKey().
Here is the caller graph for this function:| uint8_t ns3::zigbee::ZigbeeApsTxOptions::GetTxOptions | ( | ) | const |
Get the complete bitmap containing the Tx options.
Definition at line 744 of file zigbee-aps.cc.
References m_txOptions.
Referenced by SendDataGcst(), SendDataUcst(), and ZigbeeApsDataTestCase::SendDataUcstDst().
Here is the caller graph for this function:| bool ns3::zigbee::ZigbeeApsTxOptions::IsAckRequired | ( | ) | const |
Show if the ACK bit of the Tx options is present.
Definition at line 726 of file zigbee-aps.cc.
References GetBit().
Referenced by ns3::zigbee::ZigbeeAps::ApsdeDataRequest(), and ns3::zigbee::ZigbeeAps::SendDataUcstBcst().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ns3::zigbee::ZigbeeApsTxOptions::IsFragmentationPermitted | ( | ) | const |
Show if the fragmentation permitted bit of the Tx options is present.
Definition at line 732 of file zigbee-aps.cc.
References GetBit().
Here is the call graph for this function:| bool ns3::zigbee::ZigbeeApsTxOptions::IsIncludeExtendedNonce | ( | ) | const |
Show if the include extended nonce bit of the Tx options is present.
Definition at line 738 of file zigbee-aps.cc.
References GetBit().
Here is the call graph for this function:| bool ns3::zigbee::ZigbeeApsTxOptions::IsSecurityEnabled | ( | ) | const |
Show if the security enable bit of the Tx options is present.
Definition at line 714 of file zigbee-aps.cc.
References GetBit().
Referenced by ns3::zigbee::ZigbeeAps::ApsdeDataRequest(), ns3::zigbee::ZigbeeAps::SendDataGroup(), ns3::zigbee::ZigbeeAps::SendDataUcstBcst(), and ns3::zigbee::ZigbeeAps::SendDataWithBindingTable().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ns3::zigbee::ZigbeeApsTxOptions::IsUseNwkKey | ( | ) | const |
Show if the use network key bit of the Tx options is present.
Definition at line 720 of file zigbee-aps.cc.
References GetBit().
Here is the call graph for this function:| void ns3::zigbee::ZigbeeApsTxOptions::SetAckRequired | ( | bool | enable | ) |
Set the Acknowledgement required bit of the Tx options.
| enable | True if ACK is required. |
Definition at line 696 of file zigbee-aps.cc.
References SetBit().
Here is the call graph for this function:
|
private |
Set a bit value into a position in the uint8_t representint the Tx options.
| pos | Position to shift |
| value | Value to set |
Definition at line 750 of file zigbee-aps.cc.
References m_txOptions.
Referenced by SetAckRequired(), SetFragmentationPermitted(), SetIncludeExtendedNonce(), SetSecurityEnabled(), and SetUseNwkKey().
Here is the caller graph for this function:| void ns3::zigbee::ZigbeeApsTxOptions::SetFragmentationPermitted | ( | bool | enable | ) |
Set the fragmentation bit of the Tx options.
| enable | True if fragmentation is allowed in the transmission. |
Definition at line 702 of file zigbee-aps.cc.
References SetBit().
Here is the call graph for this function:| void ns3::zigbee::ZigbeeApsTxOptions::SetIncludeExtendedNonce | ( | bool | enable | ) |
Set the include extended nonce bit of the Tx options.
| enable | True if the frame should include the extended nonce |
Definition at line 708 of file zigbee-aps.cc.
References SetBit().
Here is the call graph for this function:| void ns3::zigbee::ZigbeeApsTxOptions::SetSecurityEnabled | ( | bool | enable | ) |
Set the security enable bit of the TX options.
| enable | True if security is enabled. |
Definition at line 684 of file zigbee-aps.cc.
References SetBit().
Here is the call graph for this function:| void ns3::zigbee::ZigbeeApsTxOptions::SetUseNwkKey | ( | bool | enable | ) |
Set the use network key bit of the TX options.
| enable | True if Network key should be used. |
Definition at line 690 of file zigbee-aps.cc.
References SetBit().
Here is the call graph for this function:
|
private |
the bitmap representing the Tx options
Definition at line 723 of file zigbee-aps.h.
Referenced by ZigbeeApsTxOptions(), GetBit(), GetTxOptions(), and SetBit().