Home
last modified time | relevance | path

Searched refs:freq (Results 1 – 25 of 28) sorted by relevance

12

/loramac-node-3.4.0/src/boards/mcu/saml21/hpl/core/
Dhpl_core_m0plus_base.c157 static inline uint32_t _get_cycles_for_us_internal(const uint16_t us, const uint32_t freq, const ui… in _get_cycles_for_us_internal() argument
161 return (us * (freq / 100000) - 1) / 10 + 1; in _get_cycles_for_us_internal()
163 return (us * (freq / 10000) - 1) / 100 + 1; in _get_cycles_for_us_internal()
165 return (us * (freq / 1000) - 1) / 1000 + 1; in _get_cycles_for_us_internal()
167 return (us * (freq / 100) - 1) / 10000 + 1; in _get_cycles_for_us_internal()
169 return (us * (freq / 10) - 1) / 100000 + 1; in _get_cycles_for_us_internal()
171 return (us * freq - 1) / 1000000 + 1; in _get_cycles_for_us_internal()
186 static inline uint32_t _get_cycles_for_ms_internal(const uint16_t ms, const uint32_t freq, const ui… in _get_cycles_for_ms_internal() argument
190 return (ms * (freq / 100000)) * 100; in _get_cycles_for_ms_internal()
192 return (ms * (freq / 10000)) * 10; in _get_cycles_for_ms_internal()
[all …]
/loramac-node-3.4.0/src/mac/region/
DRegionBaseUS.c137 bool RegionBaseUSVerifyFrequencyGroup( uint32_t freq, uint32_t minFreq, uint32_t maxFreq, uint32_t … in RegionBaseUSVerifyFrequencyGroup() argument
139 if( ( freq < minFreq ) || in RegionBaseUSVerifyFrequencyGroup()
140 ( freq > maxFreq ) || in RegionBaseUSVerifyFrequencyGroup()
141 ( ( ( freq - ( uint32_t ) minFreq ) % ( uint32_t ) stepwidth ) != 0 ) ) in RegionBaseUSVerifyFrequencyGroup()
DRegionEU868.c46 static bool VerifyRfFreq( uint32_t freq, uint8_t *band ) in VerifyRfFreq() argument
49 if( Radio.CheckRfFrequency( freq ) == false ) in VerifyRfFreq()
55 if( ( freq >= 863000000 ) && ( freq < 865000000 ) ) in VerifyRfFreq()
59 else if( ( freq >= 865000000 ) && ( freq <= 868000000 ) ) in VerifyRfFreq()
63 else if( ( freq > 868000000 ) && ( freq <= 868600000 ) ) in VerifyRfFreq()
67 else if( ( freq >= 868700000 ) && ( freq <= 869200000 ) ) in VerifyRfFreq()
71 else if( ( freq >= 869400000 ) && ( freq <= 869650000 ) ) in VerifyRfFreq()
75 else if( ( freq >= 869700000 ) && ( freq <= 870000000 ) ) in VerifyRfFreq()
DRegionCN470B20.c68 bool RegionCN470B20VerifyRfFreq( uint32_t freq ) in RegionCN470B20VerifyRfFreq() argument
74 group1Status = RegionBaseUSVerifyFrequencyGroup( freq, CN470_B20_FIRST_RX1_CHANNEL, in RegionCN470B20VerifyRfFreq()
78 group2Status = RegionBaseUSVerifyFrequencyGroup( freq, CN470_B20_FIRST_RX2_CHANNEL, in RegionCN470B20VerifyRfFreq()
DRegionCN470B26.c53 bool RegionCN470B26VerifyRfFreq( uint32_t freq ) in RegionCN470B26VerifyRfFreq() argument
56 if( RegionBaseUSVerifyFrequencyGroup( freq, CN470_B26_FIRST_RX_CHANNEL, in RegionCN470B26VerifyRfFreq()
DRegionCN470A26.c91 bool RegionCN470A26VerifyRfFreq( uint32_t freq ) in RegionCN470A26VerifyRfFreq() argument
94 if( RegionBaseUSVerifyFrequencyGroup( freq, CN470_A26_FIRST_RX_CHANNEL, in RegionCN470A26VerifyRfFreq()
DRegionCN470A20.c91 bool RegionCN470A20VerifyRfFreq( uint32_t freq ) in RegionCN470A20VerifyRfFreq() argument
94 if( RegionBaseUSVerifyFrequencyGroup( freq, CN470_A20_FIRST_RX_CHANNEL, in RegionCN470A20VerifyRfFreq()
DRegionAU915.c49 static bool VerifyRfFreq( uint32_t freq ) in VerifyRfFreq() argument
52 if( Radio.CheckRfFrequency( freq ) == false ) in VerifyRfFreq()
58 if( ( freq < AU915_FIRST_RX1_CHANNEL ) || in VerifyRfFreq()
59 ( freq > AU915_LAST_RX1_CHANNEL ) || in VerifyRfFreq()
60 …( ( ( freq - ( uint32_t ) AU915_FIRST_RX1_CHANNEL ) % ( uint32_t ) AU915_STEPWIDTH_RX1_CHANNEL ) !… in VerifyRfFreq()
67 if( ( freq < 915200000 ) || ( freq > 927800000 ) ) in VerifyRfFreq()
DRegionUS915.c70 static bool VerifyRfFreq( uint32_t freq ) in VerifyRfFreq() argument
73 if( Radio.CheckRfFrequency( freq ) == false ) in VerifyRfFreq()
79 if( ( freq < US915_FIRST_RX1_CHANNEL ) || in VerifyRfFreq()
80 ( freq > US915_LAST_RX1_CHANNEL ) || in VerifyRfFreq()
81 …( ( ( freq - ( uint32_t ) US915_FIRST_RX1_CHANNEL ) % ( uint32_t ) US915_STEPWIDTH_RX1_CHANNEL ) !… in VerifyRfFreq()
87 if( ( freq < 902300000 ) || ( freq > 927500000 ) ) in VerifyRfFreq()
DRegionBaseUS.h75 bool RegionBaseUSVerifyFrequencyGroup( uint32_t freq, uint32_t minFreq, uint32_t maxFreq, uint32_t …
DRegionCN779.c46 static bool VerifyRfFreq( uint32_t freq ) in VerifyRfFreq() argument
49 if( Radio.CheckRfFrequency( freq ) == false ) in VerifyRfFreq()
54 if( ( freq < 779500000 ) || ( freq > 786500000 ) ) in VerifyRfFreq()
DRegionEU433.c46 static bool VerifyRfFreq( uint32_t freq ) in VerifyRfFreq() argument
49 if( Radio.CheckRfFrequency( freq ) == false ) in VerifyRfFreq()
54 if( ( freq < 433175000 ) || ( freq > 434665000 ) ) in VerifyRfFreq()
DRegionIN865.c46 static bool VerifyRfFreq( uint32_t freq ) in VerifyRfFreq() argument
49 if( Radio.CheckRfFrequency( freq ) == false ) in VerifyRfFreq()
54 if( ( freq < 865000000 ) || ( freq > 867000000 ) ) in VerifyRfFreq()
DRegionKR920.c52 static int8_t GetMaxEIRP( uint32_t freq ) in GetMaxEIRP() argument
54 if( freq >= 922100000 ) in GetMaxEIRP()
62 static bool VerifyRfFreq( uint32_t freq ) in VerifyRfFreq() argument
64 uint32_t tmpFreq = freq; in VerifyRfFreq()
DRegionRU864.c46 static bool VerifyRfFreq( uint32_t freq ) in VerifyRfFreq() argument
49 if( Radio.CheckRfFrequency( freq ) == false ) in VerifyRfFreq()
55 if( ( freq < 864000000 ) || ( freq > 870000000 ) ) in VerifyRfFreq()
DRegionAS923.c107 static bool VerifyRfFreq( uint32_t freq ) in VerifyRfFreq() argument
110 if( Radio.CheckRfFrequency( freq ) == false ) in VerifyRfFreq()
115 if( ( freq < AS923_MIN_RF_FREQUENCY ) || ( freq > AS923_MAX_RF_FREQUENCY ) ) in VerifyRfFreq()
/loramac-node-3.4.0/src/radio/
Dradio.h139 void ( *SetChannel )( uint32_t freq );
152 …bool ( *IsChannelFree )( uint32_t freq, uint32_t rxBandwidth, int16_t rssiThresh, uint32_t maxC…
320 void ( *SetTxContinuousWave )( uint32_t freq, int8_t power, uint16_t time );
/loramac-node-3.4.0/src/radio/sx1272/
Dsx1272.h193 void SX1272SetChannel( uint32_t freq );
207 bool SX1272IsChannelFree( uint32_t freq, uint32_t rxBandwidth, int16_t rssiThresh, uint32_t maxCarr…
377 void SX1272SetTxContinuousWave( uint32_t freq, int8_t power, uint16_t time );
Dsx1272.c335 void SX1272SetChannel( uint32_t freq ) in SX1272SetChannel() argument
337 uint32_t freqInPllSteps = SX1272ConvertFreqInHzToPllStep( freq ); in SX1272SetChannel()
339 SX1272.Settings.Channel = freq; in SX1272SetChannel()
346 bool SX1272IsChannelFree( uint32_t freq, uint32_t rxBandwidth, int16_t rssiThresh, uint32_t maxCarr… in SX1272IsChannelFree() argument
356 SX1272SetChannel( freq ); in SX1272IsChannelFree()
1031 void SX1272SetTxContinuousWave( uint32_t freq, int8_t power, uint16_t time ) in SX1272SetTxContinuousWave() argument
1035 SX1272SetChannel( freq ); in SX1272SetTxContinuousWave()
/loramac-node-3.4.0/src/radio/sx1276/
Dsx1276.h193 void SX1276SetChannel( uint32_t freq );
207 bool SX1276IsChannelFree( uint32_t freq, uint32_t rxBandwidth, int16_t rssiThresh, uint32_t maxCarr…
381 void SX1276SetTxContinuousWave( uint32_t freq, int8_t power, uint16_t time );
Dsx1276.c346 void SX1276SetChannel( uint32_t freq ) in SX1276SetChannel() argument
348 uint32_t freqInPllSteps = SX1276ConvertFreqInHzToPllStep( freq ); in SX1276SetChannel()
350 SX1276.Settings.Channel = freq; in SX1276SetChannel()
357 bool SX1276IsChannelFree( uint32_t freq, uint32_t rxBandwidth, int16_t rssiThresh, uint32_t maxCarr… in SX1276IsChannelFree() argument
367 SX1276SetChannel( freq ); in SX1276IsChannelFree()
1164 void SX1276SetTxContinuousWave( uint32_t freq, int8_t power, uint16_t time ) in SX1276SetTxContinuousWave() argument
1168 SX1276SetChannel( freq ); in SX1276SetTxContinuousWave()
/loramac-node-3.4.0/src/radio/sx126x/
Dradio.c59 void RadioSetChannel( uint32_t freq );
73 bool RadioIsChannelFree( uint32_t freq, uint32_t rxBandwidth, int16_t rssiThresh, uint32_t maxCarri…
252 void RadioSetTxContinuousWave( uint32_t freq, int8_t power, uint16_t time );
581 void RadioSetChannel( uint32_t freq ) in RadioSetChannel() argument
583 SX126xSetRfFrequency( freq ); in RadioSetChannel()
586 bool RadioIsChannelFree( uint32_t freq, uint32_t rxBandwidth, int16_t rssiThresh, uint32_t maxCarri… in RadioIsChannelFree() argument
594 RadioSetChannel( freq ); in RadioIsChannelFree()
1151 void RadioSetTxContinuousWave( uint32_t freq, int8_t power, uint16_t time ) in RadioSetTxContinuousWave() argument
1155 SX126xSetRfFrequency( freq ); in RadioSetTxContinuousWave()
Dsx126x.c409 void SX126xCalibrateImage( uint32_t freq ) in SX126xCalibrateImage() argument
413 if( freq > 900000000 ) in SX126xCalibrateImage()
418 else if( freq > 850000000 ) in SX126xCalibrateImage()
423 else if( freq > 770000000 ) in SX126xCalibrateImage()
428 else if( freq > 460000000 ) in SX126xCalibrateImage()
433 else if( freq > 425000000 ) in SX126xCalibrateImage()
/loramac-node-3.4.0/src/radio/lr1110/
Dradio.c61 void RadioSetChannel( uint32_t freq );
75 bool RadioIsChannelFree( uint32_t freq, uint32_t rxBandwidth, int16_t rssiThresh, uint32_t maxCarri…
249 void RadioSetTxContinuousWave( uint32_t freq, int8_t power, uint16_t time );
551 void RadioSetChannel( uint32_t freq ) in RadioSetChannel() argument
553 lr1110_radio_set_rf_frequency( &LR1110, freq ); in RadioSetChannel()
556 bool RadioIsChannelFree( uint32_t freq, uint32_t rxBandwidth, int16_t rssiThresh, uint32_t maxCarri… in RadioIsChannelFree() argument
564 RadioSetChannel( freq ); in RadioIsChannelFree()
1080 void RadioSetTxContinuousWave( uint32_t freq, int8_t power, uint16_t time ) in RadioSetTxContinuousWave() argument
1084 lr1110_radio_set_rf_frequency( &LR1110, freq ); in RadioSetTxContinuousWave()
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_hal_sai.c536 uint32_t freq; in HAL_SAI_Init() local
546 freq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SAI1); in HAL_SAI_Init()
551 freq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SAI2); in HAL_SAI_Init()
556 freq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SAI1); in HAL_SAI_Init()
572 tmpval = (freq * 10U) / (hsai->Init.AudioFrequency * hsai->FrameInit.FrameLength); in HAL_SAI_Init()
580 tmpval = (freq * 10U) / (hsai->Init.AudioFrequency * tmposr * 256U); in HAL_SAI_Init()
595 tmpval = (freq * 10U) / (hsai->Init.AudioFrequency * 2U * 256U); in HAL_SAI_Init()

12