<reponame>tbabluct/py_rf_lora_868_so
    """
    The dictionary `addr_lookup` maps the register name used in the Semtech SX1272 to
    the register address.
    Semtech SX1272 datasheet: https://www.semtech.com/products/wireless-rf/lora-transceivers/sx1272
    
    """

addr_lookup = {
    "RegFifo" : 0x00,
    "RegOpMode" : 0x01,
    "RegFrMsb" : 0x06,
    "RegFrMib" : 0x07,
    "RegFrLsb" : 0x08,
    "RegPaConfig" : 0x09,
    "RegPaRamp" : 0xA,
    "RegOcp" : 0x0B,
    "RegLna" : 0x0C,
    "RegFifoAddrPtr" : 0x0D,
    "RegFifoTxBaseAddr" : 0x0E,
    "RegFifoRxBaseAddr" : 0x0F,
    "RegFifoRxCurrentAddr" : 0x10,
    "RegIrqFlagsMask" : 0x11,
    "RegIrqFlags" : 0x12,
    "RegRxNbBytes" : 0x13,
    "RegRxHeaderCntValueMsb" : 0x14,
    "RegRxHeaderCntValueLsb" : 0x15,
    "RegRxPacketCntValueMsb" : 0x16,
    "RegRxPacketCntValueLsb" : 0x17,
    "RegModemStat" : 0x18,
    "RegPktSnrValue" : 0x19,
    "RegPktRssiValue" : 0x1A,
    "RegRssiValue" : 0x1B,
    "RegHopChannel" : 0x1C,
    "RegModemConfig1" : 0x1D,
    "RegModemConfig2" : 0x1E,
    "RegSymbTimeoutLsb" : 0x1F,
    "RegPreambleMsb" : 0x20,
    "RegPreambleLsb" : 0x21,
    "RegPayloadLength" : 0x22,
    "RegMaxPayloadLength" : 0x23,
    "RegHopPeriod" : 0x24,
    "RegFifoRxByteAddr" : 0x25,
    "RegFeiMsb" : 0x28,
    "RegFeiMid" : 0x29,
    "RegFeiLsb" : 0x2A,
    "RegRssiWideband" : 0x2C,
    "RegDetectOptimize" : 0x31,
    "RegInvertIQ" : 0x33,
    "RegDetectionThreshold" : 0x37,
    "RegSyncWord" : 0x39,
    "RegInvertIQ2" : 0x3B,
    "RegChirpFilter" : 0x3D,
}

"""
    The dictionary `addr_lookup` maps the register name used in the Semtech SX1272 to
    the register address.
    Semtech SX1272 datasheet: https://www.semtech.com/products/wireless-rf/lora-transceivers/sx1272
    
    """

addr_lookup = {
    "RegFifo" : 0x00,
    "RegOpMode" : 0x01,
    "RegFrMsb" : 0x06,
    "RegFrMib" : 0x07,
    "RegFrLsb" : 0x08,
    "RegPaConfig" : 0x09,
    "RegPaRamp" : 0xA,
    "RegOcp" : 0x0B,
    "RegLna" : 0x0C,
    "RegFifoAddrPtr" : 0x0D,
    "RegFifoTxBaseAddr" : 0x0E,
    "RegFifoRxBaseAddr" : 0x0F,
    "RegFifoRxCurrentAddr" : 0x10,
    "RegIrqFlagsMask" : 0x11,
    "RegIrqFlags" : 0x12,
    "RegRxNbBytes" : 0x13,
    "RegRxHeaderCntValueMsb" : 0x14,
    "RegRxHeaderCntValueLsb" : 0x15,
    "RegRxPacketCntValueMsb" : 0x16,
    "RegRxPacketCntValueLsb" : 0x17,
    "RegModemStat" : 0x18,
    "RegPktSnrValue" : 0x19,
    "RegPktRssiValue" : 0x1A,
    "RegRssiValue" : 0x1B,
    "RegHopChannel" : 0x1C,
    "RegModemConfig1" : 0x1D,
    "RegModemConfig2" : 0x1E,
    "RegSymbTimeoutLsb" : 0x1F,
    "RegPreambleMsb" : 0x20,
    "RegPreambleLsb" : 0x21,
    "RegPayloadLength" : 0x22,
    "RegMaxPayloadLength" : 0x23,
    "RegHopPeriod" : 0x24,
    "RegFifoRxByteAddr" : 0x25,
    "RegFeiMsb" : 0x28,
    "RegFeiMid" : 0x29,
    "RegFeiLsb" : 0x2A,
    "RegRssiWideband" : 0x2C,
    "RegDetectOptimize" : 0x31,
    "RegInvertIQ" : 0x33,
    "RegDetectionThreshold" : 0x37,
    "RegSyncWord" : 0x39,
    "RegInvertIQ2" : 0x3B,
    "RegChirpFilter" : 0x3D,
}
The dictionary `addr_lookup` maps the register name used in the Semtech SX1272 to     the register address.     Semtech SX1272 datasheet: https://www.semtech.com/products/wireless-rf/lora-transceivers/sx1272