Lines Matching refs:uint8_t
57 uint8_t Value; //!< The value of the register
145 void SX126xSetPayload( uint8_t *payload, uint8_t size ) in SX126xSetPayload()
150 uint8_t SX126xGetPayload( uint8_t *buffer, uint8_t *size, uint8_t maxSize ) in SX126xGetPayload()
152 uint8_t offset = 0; in SX126xGetPayload()
163 void SX126xSendPayload( uint8_t *payload, uint8_t size, uint32_t timeout ) in SX126xSendPayload()
169 uint8_t SX126xSetSyncWord( uint8_t *syncWord ) in SX126xSetSyncWord()
177 uint8_t buf[2]; in SX126xSetCrcSeed()
179 buf[0] = ( uint8_t )( ( seed >> 8 ) & 0xFF ); in SX126xSetCrcSeed()
180 buf[1] = ( uint8_t )( seed & 0xFF ); in SX126xSetCrcSeed()
195 uint8_t buf[2]; in SX126xSetCrcPolynomial()
197 buf[0] = ( uint8_t )( ( polynomial >> 8 ) & 0xFF ); in SX126xSetCrcPolynomial()
198 buf[1] = ( uint8_t )( polynomial & 0xFF ); in SX126xSetCrcPolynomial()
213 uint8_t regValue = 0; in SX126xSetWhiteningSeed()
221 SX126xWriteRegister( REG_LR_WHITSEEDBASEADDR_LSB, ( uint8_t )seed ); in SX126xSetWhiteningSeed()
232 uint8_t regAnaLna = 0; in SX126xGetRandom()
233 uint8_t regAnaMixer = 0; in SX126xGetRandom()
244 SX126xReadRegisters( RANDOM_NUMBER_GENERATORBASEADDR, ( uint8_t* )&number, 4 ); in SX126xGetRandom()
258 uint8_t value = ( ( ( uint8_t )sleepConfig.Fields.WarmStart << 2 ) | in SX126xSetSleep()
259 ( ( uint8_t )sleepConfig.Fields.Reset << 1 ) | in SX126xSetSleep()
260 ( ( uint8_t )sleepConfig.Fields.WakeUpRTC ) ); in SX126xSetSleep()
273 SX126xWriteCommand( RADIO_SET_STANDBY, ( uint8_t* )&standbyConfig, 1 ); in SX126xSetStandby()
292 uint8_t buf[3]; in SX126xSetTx()
296 buf[0] = ( uint8_t )( ( timeout >> 16 ) & 0xFF ); in SX126xSetTx()
297 buf[1] = ( uint8_t )( ( timeout >> 8 ) & 0xFF ); in SX126xSetTx()
298 buf[2] = ( uint8_t )( timeout & 0xFF ); in SX126xSetTx()
304 uint8_t buf[3]; in SX126xSetRx()
310 buf[0] = ( uint8_t )( ( timeout >> 16 ) & 0xFF ); in SX126xSetRx()
311 buf[1] = ( uint8_t )( ( timeout >> 8 ) & 0xFF ); in SX126xSetRx()
312 buf[2] = ( uint8_t )( timeout & 0xFF ); in SX126xSetRx()
318 uint8_t buf[3]; in SX126xSetRxBoosted()
324 buf[0] = ( uint8_t )( ( timeout >> 16 ) & 0xFF ); in SX126xSetRxBoosted()
325 buf[1] = ( uint8_t )( ( timeout >> 8 ) & 0xFF ); in SX126xSetRxBoosted()
326 buf[2] = ( uint8_t )( timeout & 0xFF ); in SX126xSetRxBoosted()
332 uint8_t buf[6]; in SX126xSetRxDutyCycle()
334 buf[0] = ( uint8_t )( ( rxTime >> 16 ) & 0xFF ); in SX126xSetRxDutyCycle()
335 buf[1] = ( uint8_t )( ( rxTime >> 8 ) & 0xFF ); in SX126xSetRxDutyCycle()
336 buf[2] = ( uint8_t )( rxTime & 0xFF ); in SX126xSetRxDutyCycle()
337 buf[3] = ( uint8_t )( ( sleepTime >> 16 ) & 0xFF ); in SX126xSetRxDutyCycle()
338 buf[4] = ( uint8_t )( ( sleepTime >> 8 ) & 0xFF ); in SX126xSetRxDutyCycle()
339 buf[5] = ( uint8_t )( sleepTime & 0xFF ); in SX126xSetRxDutyCycle()
364 SX126xWriteCommand( RADIO_SET_STOPRXTIMERONPREAMBLE, ( uint8_t* )&enable, 1 ); in SX126xSetStopRxTimerOnPreambleDetect()
367 void SX126xSetLoRaSymbNumTimeout( uint8_t symbNum ) in SX126xSetLoRaSymbNumTimeout()
369 uint8_t mant = ( ( ( symbNum > SX126X_MAX_LORA_SYMB_NUM_TIMEOUT ) ? in SX126xSetLoRaSymbNumTimeout()
372 uint8_t exp = 0; in SX126xSetLoRaSymbNumTimeout()
373 uint8_t reg = 0; in SX126xSetLoRaSymbNumTimeout()
393 SX126xWriteCommand( RADIO_SET_REGULATORMODE, ( uint8_t* )&mode, 1 ); in SX126xSetRegulatorMode()
398 uint8_t value = ( ( ( uint8_t )calibParam.Fields.ImgEnable << 6 ) | in SX126xCalibrate()
399 ( ( uint8_t )calibParam.Fields.ADCBulkPEnable << 5 ) | in SX126xCalibrate()
400 ( ( uint8_t )calibParam.Fields.ADCBulkNEnable << 4 ) | in SX126xCalibrate()
401 ( ( uint8_t )calibParam.Fields.ADCPulseEnable << 3 ) | in SX126xCalibrate()
402 ( ( uint8_t )calibParam.Fields.PLLEnable << 2 ) | in SX126xCalibrate()
403 ( ( uint8_t )calibParam.Fields.RC13MEnable << 1 ) | in SX126xCalibrate()
404 ( ( uint8_t )calibParam.Fields.RC64KEnable ) ); in SX126xCalibrate()
411 uint8_t calFreq[2]; in SX126xCalibrateImage()
441 void SX126xSetPaConfig( uint8_t paDutyCycle, uint8_t hpMax, uint8_t deviceSel, uint8_t paLut ) in SX126xSetPaConfig()
443 uint8_t buf[4]; in SX126xSetPaConfig()
452 void SX126xSetRxTxFallbackMode( uint8_t fallbackMode ) in SX126xSetRxTxFallbackMode()
459 uint8_t buf[8]; in SX126xSetDioIrqParams()
461 buf[0] = ( uint8_t )( ( irqMask >> 8 ) & 0x00FF ); in SX126xSetDioIrqParams()
462 buf[1] = ( uint8_t )( irqMask & 0x00FF ); in SX126xSetDioIrqParams()
463 buf[2] = ( uint8_t )( ( dio1Mask >> 8 ) & 0x00FF ); in SX126xSetDioIrqParams()
464 buf[3] = ( uint8_t )( dio1Mask & 0x00FF ); in SX126xSetDioIrqParams()
465 buf[4] = ( uint8_t )( ( dio2Mask >> 8 ) & 0x00FF ); in SX126xSetDioIrqParams()
466 buf[5] = ( uint8_t )( dio2Mask & 0x00FF ); in SX126xSetDioIrqParams()
467 buf[6] = ( uint8_t )( ( dio3Mask >> 8 ) & 0x00FF ); in SX126xSetDioIrqParams()
468 buf[7] = ( uint8_t )( dio3Mask & 0x00FF ); in SX126xSetDioIrqParams()
474 uint8_t irqStatus[2]; in SX126xGetIrqStatus()
480 void SX126xSetDio2AsRfSwitchCtrl( uint8_t enable ) in SX126xSetDio2AsRfSwitchCtrl()
487 uint8_t buf[4]; in SX126xSetDio3AsTcxoCtrl()
490 buf[1] = ( uint8_t )( ( timeout >> 16 ) & 0xFF ); in SX126xSetDio3AsTcxoCtrl()
491 buf[2] = ( uint8_t )( ( timeout >> 8 ) & 0xFF ); in SX126xSetDio3AsTcxoCtrl()
492 buf[3] = ( uint8_t )( timeout & 0xFF ); in SX126xSetDio3AsTcxoCtrl()
499 uint8_t buf[4]; in SX126xSetRfFrequency()
509 buf[0] = ( uint8_t )( ( freqInPllSteps >> 24 ) & 0xFF ); in SX126xSetRfFrequency()
510 buf[1] = ( uint8_t )( ( freqInPllSteps >> 16 ) & 0xFF ); in SX126xSetRfFrequency()
511 buf[2] = ( uint8_t )( ( freqInPllSteps >> 8 ) & 0xFF ); in SX126xSetRfFrequency()
512 buf[3] = ( uint8_t )( freqInPllSteps & 0xFF ); in SX126xSetRfFrequency()
520 SX126xWriteCommand( RADIO_SET_PACKETTYPE, ( uint8_t* )&packetType, 1 ); in SX126xSetPacketType()
530 uint8_t buf[2]; in SX126xSetTxParams()
568 buf[1] = ( uint8_t )rampTime; in SX126xSetTxParams()
574 uint8_t n; in SX126xSetModulationParams()
576 uint8_t buf[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; in SX126xSetModulationParams()
619 uint8_t n; in SX126xSetPacketParams()
620 uint8_t crcVal = 0; in SX126xSetPacketParams()
621 uint8_t buf[9] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; in SX126xSetPacketParams()
676 void SX126xSetCadParams( RadioLoRaCadSymbols_t cadSymbolNum, uint8_t cadDetPeak, uint8_t cadDetMin,… in SX126xSetCadParams()
678 uint8_t buf[7]; in SX126xSetCadParams()
680 buf[0] = ( uint8_t )cadSymbolNum; in SX126xSetCadParams()
683 buf[3] = ( uint8_t )cadExitMode; in SX126xSetCadParams()
684 buf[4] = ( uint8_t )( ( cadTimeout >> 16 ) & 0xFF ); in SX126xSetCadParams()
685 buf[5] = ( uint8_t )( ( cadTimeout >> 8 ) & 0xFF ); in SX126xSetCadParams()
686 buf[6] = ( uint8_t )( cadTimeout & 0xFF ); in SX126xSetCadParams()
691 void SX126xSetBufferBaseAddress( uint8_t txBaseAddress, uint8_t rxBaseAddress ) in SX126xSetBufferBaseAddress()
693 uint8_t buf[2]; in SX126xSetBufferBaseAddress()
702 uint8_t stat = 0; in SX126xGetStatus()
713 uint8_t buf[1]; in SX126xGetRssiInst()
721 void SX126xGetRxBufferStatus( uint8_t *payloadLength, uint8_t *rxStartBufferPointer ) in SX126xGetRxBufferStatus()
723 uint8_t status[2]; in SX126xGetRxBufferStatus()
742 uint8_t status[3]; in SX126xGetPacketStatus()
776 uint8_t err[] = { 0, 0 }; in SX126xGetDeviceErrors()
779 SX126xReadCommand( RADIO_GET_ERROR, ( uint8_t* )err, 2 ); in SX126xGetDeviceErrors()
793 uint8_t buf[2] = { 0x00, 0x00 }; in SX126xClearDeviceErrors()
799 uint8_t buf[2]; in SX126xClearIrqStatus()
801 buf[0] = ( uint8_t )( ( ( uint16_t )irq >> 8 ) & 0x00FF ); in SX126xClearIrqStatus()
802 buf[1] = ( uint8_t )( ( uint16_t )irq & 0x00FF ); in SX126xClearIrqStatus()