Lines Matching refs:band

76 static uint16_t GetDutyCycle( Band_t* band, bool joined, SysTime_t elapsedTimeSinceStartup )  in GetDutyCycle()  argument
78 uint16_t dutyCycle = band->DCycle; in GetDutyCycle()
97 static uint16_t SetMaxTimeCredits( Band_t* band, bool joined, SysTime_t elapsedTimeSinceStartup, in SetMaxTimeCredits() argument
100 uint16_t dutyCycle = band->DCycle; in SetMaxTimeCredits()
105 dutyCycle = GetDutyCycle( band, joined, elapsedTimeSinceStartup ); in SetMaxTimeCredits()
127 band->TimeCredits = maxCredits; in SetMaxTimeCredits()
133 band->MaxTimeCredits = maxCredits; in SetMaxTimeCredits()
138 static uint16_t UpdateTimeCredits( Band_t* band, bool joined, bool dutyCycleEnabled, in UpdateTimeCredits() argument
142 uint16_t dutyCycle = SetMaxTimeCredits( band, joined, elapsedTimeSinceStartup, in UpdateTimeCredits()
164 ( band->LastMaxCreditAssignTime != observation ) || in UpdateTimeCredits()
165 ( band->LastBandUpdateTime == 0 ) ) in UpdateTimeCredits()
167 band->TimeCredits = band->MaxTimeCredits; in UpdateTimeCredits()
168 band->LastBandUpdateTime = currentTime; in UpdateTimeCredits()
169 band->LastMaxCreditAssignTime = observation; in UpdateTimeCredits()
265 void RegionCommonSetBandTxDone( Band_t* band, TimerTime_t lastTxAirTime, bool joined, SysTime_t ela… in RegionCommonSetBandTxDone() argument
269 uint16_t dutyCycle = GetDutyCycle( band, joined, elapsedTimeSinceStartup ); in RegionCommonSetBandTxDone()
272 if( band->TimeCredits > ( lastTxAirTime * dutyCycle ) ) in RegionCommonSetBandTxDone()
275 band->TimeCredits -= ( lastTxAirTime * dutyCycle ); in RegionCommonSetBandTxDone()
279 band->TimeCredits = 0; in RegionCommonSetBandTxDone()