Lines Matching refs:datarate
178 uint32_t datarate, uint8_t coderate,
419 uint32_t datarate, uint8_t coderate, in SX1272SetRxConfig() argument
435 SX1272.Settings.Fsk.Datarate = datarate; in SX1272SetRxConfig()
443 SX1272.Settings.Fsk.RxSingleTimeout = ( uint32_t )symbTimeout * 8000UL / datarate; in SX1272SetRxConfig()
445 uint32_t bitRate = ( uint32_t )( SX1272_XTAL_FREQ / datarate ); in SX1272SetRxConfig()
476 SX1272.Settings.LoRa.Datarate = datarate; in SX1272SetRxConfig()
487 if( datarate > 12 ) in SX1272SetRxConfig()
489 datarate = 12; in SX1272SetRxConfig()
491 else if( datarate < 6 ) in SX1272SetRxConfig()
493 datarate = 6; in SX1272SetRxConfig()
496 if( ( ( bandwidth == 0 ) && ( ( datarate == 11 ) || ( datarate == 12 ) ) ) || in SX1272SetRxConfig()
497 ( ( bandwidth == 1 ) && ( datarate == 12 ) ) ) in SX1272SetRxConfig()
521 ( datarate << 4 ) | in SX1272SetRxConfig()
540 if( datarate == 6 ) in SX1272SetRxConfig()
564 uint32_t bandwidth, uint32_t datarate, in SX1272SetTxConfig() argument
582 SX1272.Settings.Fsk.Datarate = datarate; in SX1272SetTxConfig()
593 uint32_t bitRate = ( uint32_t )( SX1272_XTAL_FREQ / datarate ); in SX1272SetTxConfig()
613 SX1272.Settings.LoRa.Datarate = datarate; in SX1272SetTxConfig()
623 if( datarate > 12 ) in SX1272SetTxConfig()
625 datarate = 12; in SX1272SetTxConfig()
627 else if( datarate < 6 ) in SX1272SetTxConfig()
629 datarate = 6; in SX1272SetTxConfig()
631 if( ( ( bandwidth == 0 ) && ( ( datarate == 11 ) || ( datarate == 12 ) ) ) || in SX1272SetTxConfig()
632 ( ( bandwidth == 1 ) && ( datarate == 12 ) ) ) in SX1272SetTxConfig()
661 ( datarate << 4 ) ); in SX1272SetTxConfig()
667 if( datarate == 6 ) in SX1272SetTxConfig()
691 uint32_t datarate, uint8_t coderate, in SX1272GetTimeOnAir() argument
703 denominator = datarate; in SX1272GetTimeOnAir()
708 …numerator = 1000U * SX1272GetLoRaTimeOnAirNumerator( bandwidth, datarate, coderate, preambleLen,… in SX1272GetTimeOnAir()
1321 uint32_t datarate, uint8_t coderate, in SX1272GetLoRaTimeOnAirNumerator() argument
1330 if( ( datarate == 5 ) || ( datarate == 6 ) ) in SX1272GetLoRaTimeOnAirNumerator()
1338 if( ( ( bandwidth == 0 ) && ( ( datarate == 11 ) || ( datarate == 12 ) ) ) || in SX1272GetLoRaTimeOnAirNumerator()
1339 ( ( bandwidth == 1 ) && ( datarate == 12 ) ) ) in SX1272GetLoRaTimeOnAirNumerator()
1347 ( 4 * datarate ) + in SX1272GetLoRaTimeOnAirNumerator()
1350 if( datarate <= 6 ) in SX1272GetLoRaTimeOnAirNumerator()
1352 ceilDenominator = 4 * datarate; in SX1272GetLoRaTimeOnAirNumerator()
1360 ceilDenominator = 4 * ( datarate - 2 ); in SX1272GetLoRaTimeOnAirNumerator()
1364 ceilDenominator = 4 * datarate; in SX1272GetLoRaTimeOnAirNumerator()
1377 if( datarate <= 6 ) in SX1272GetLoRaTimeOnAirNumerator()
1382 return ( uint32_t )( ( 4 * intermediate + 1 ) * ( 1 << ( datarate - 2 ) ) ); in SX1272GetLoRaTimeOnAirNumerator()