Contains formulas for determining Sync Sampling configuration
double bytesPerSecond( |
| ) |
Calculates the number of bytes per second
sampleRate const SampleRate& | The SampleRate |
numChs uint16 | The number of active channels |
bytesPerSample uint8 | The number of bytes per sample |
The number of bytes per second
uint32 maxBytesPerPacket( |
| ) |
Calculates the maximum number of bytes per packet
sampleRate const SampleRate& | The SampleRate |
lossless bool | Whether the network is using lossless or not |
highBandwidth bool | Whether we are attempting to optimize bandwidth or not |
syncFormulaVersion uint8 | The version of the Sync Sampling formula to use |
uint32 groupSize( |
| ) |
Calculates the group size
bytesPerSecond double | The number of bytes per second |
maxBytesPerPacket uint32 | The maximum number of bytes per packet |
highCapacity bool | Whether the network is using high capacity mode or not |
The group size for the network
uint32 txPerGroup( |
| ) |
Calculates the transmissions per group
bytesPerSecond double | The number of bytes per second |
maxBytesPerPacket uint32 | The maximum number of bytes per packet |
groupSize uint32 | The group size for the network |
The transmissions per group
float txPerSecond( |
| ) |
Calculates the number of transmissions per second
txPerGroup uint32 | The number of transmissions per group |
groupSize uint32 | The group size for the network |
The number of transmissions per second
Gets the slot spacing for the network
The slot spacing for the network
uint32 maxTdmaAddress( |
| ) |
Gets the maximum TDMA address that is allowed
The maximum TDMA address that is allowed
float percentBandwidth( |
| ) |
Calculates the percent of bandwidth for a single node
txPerSecond | The number of transmissions per second |
The percent of bandwidth
double sampleDuration( |
| ) |
Calculates the sample duration for a given sample rate and number of sweeps
numSweeps uint32 | The number of sweeps sampleRate The SampleRate |
uint32 bytesPerSweep( |
| ) |
Gets the total number of bytes per data sweep
bytesPerSample uint8 | The number of bytes per sample |
numChs uint16 | The number of active channels |
The total number of bytes per data sweep
bool checkSamplingDelay( |
| ) |
Whether or not the sampling delay should be checked when finding slots in the Sync Sampling network
samplingMode | The WirelessTypes::SyncSamplingMode of the node |
sampleRate const SampleRate& | The SampleRate of the node |
nodeModel | The WirelessModels::NodeModel of the node |
true if the sampling delay should be checked, false if it should not be checked
uint16 slotsBetweenTx( |
| ) |
Calculates the number of slots that need to be between each transmission
txPerGroup uint32 | The number of transmissions per group |
groupSize uint32 | The group size for the network |
The number of slots that need to be between each transmission
bool canHaveSlot1( |
| ) |
Checks whether the node can be assigned slot 1 in the Sync Sampling network
nodeModel | The WirelessModels::NodeModel of the node |
syncVersion uint8 | The version of the Sync Sampling formulas supported by the node |
true if the node can be assigned slot 1, false if it cannot be assigned slot 1
uint32 totalBytesPerBurst( |
| ) |
Gets the total number of bytes per burst
bytesPerSweep uint32 | The total number of bytes per data sweep |
numSweeps uint32 | The number of sweeps |
The total number of bytes per burst
uint32 maxDataBytesPerPacket( |
| ) |
Gets the maximum number of bytes per packet
bytesPerSweep uint32 | The total number of bytes per data sweep |
lossless bool | Whether the network is using lossless or not |
The maximum number of bytes per packet
uint32 totalNeededBurstTx( |
| ) |
Calculates the total needed transmissions for bursts
totalBytesPerBurst uint32 | The total number of bytes per burst |
maxBurstBytesPerPacket uint32 | The maximum number of bytes per packet |
The total needed transmissions for Bursts
uint32 minTimeBetweenBursts( |
| ) |
Calculates the minimum amount of time allowed between bursts
totalNeededTx uint32 | The total needed transmissions for bursts |
sampleDuration double | The sample duration |
lossless bool | Whether the network is using lossless or not |
The minimum amount of time allowed between bursts
TimeSpan minTimeBetweenBursts( |
| ) |
Gets the minimum time that can be assigned for a Burst Sync Sampling session.
dataFormat | The WirelessTypes::DataFormat of the sampling session. |
numChannels | The number of active channels for the sampling session. |
sampleRate const mscl::SampleRate& | The SampleRate that for the sampling session. |
sweepsPerBurst uint32 | The number of sweeps per burst for the sampling session. |
A TimeSpan representing the minimum time that can be assigned for a Burst Sync Sampling session.
uint32 burstTxPerSecond( |
| ) |
Calculates the burst transmissions per second
totalNeededTx uint32 | The total needed transmissions for bursts |
timeBetweenBursts uint32 | The time between each burst |
sampleDuration double | The sample duration |
lossless bool | Whether the network is using lossless or not |
The burst transmissions per second