/loramac-node-latest/src/boards/NucleoL476/ |
D | sx1261mbxbas-board.c | 68 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoInit() 69 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 70 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 76 GpioSetInterrupt( &SX126x.DIO1, IRQ_RISING_EDGE, IRQ_HIGH_PRIORITY, dioIrq ); in SX126xIoIrqInit() 81 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoDeInit() 82 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 83 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 140 GpioInit( &SX126x.Reset, RADIO_RESET, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xReset() 142 …GpioInit( &SX126x.Reset, RADIO_RESET, PIN_ANALOGIC, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); // internal p… in SX126xReset() 148 while( GpioRead( &SX126x.BUSY ) == 1 ); in SX126xWaitOnBusy() [all …]
|
D | sx1262mbxcas-board.c | 68 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoInit() 69 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 70 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 76 GpioSetInterrupt( &SX126x.DIO1, IRQ_RISING_EDGE, IRQ_HIGH_PRIORITY, dioIrq ); in SX126xIoIrqInit() 81 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoDeInit() 82 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 83 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 140 GpioInit( &SX126x.Reset, RADIO_RESET, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xReset() 142 …GpioInit( &SX126x.Reset, RADIO_RESET, PIN_ANALOGIC, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); // internal p… in SX126xReset() 148 while( GpioRead( &SX126x.BUSY ) == 1 ); in SX126xWaitOnBusy() [all …]
|
D | sx1262mbxdas-board.c | 71 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoInit() 72 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 73 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 79 GpioSetInterrupt( &SX126x.DIO1, IRQ_RISING_EDGE, IRQ_HIGH_PRIORITY, dioIrq ); in SX126xIoIrqInit() 84 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoDeInit() 85 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 86 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 147 GpioInit( &SX126x.Reset, RADIO_RESET, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xReset() 149 …GpioInit( &SX126x.Reset, RADIO_RESET, PIN_ANALOGIC, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); // internal p… in SX126xReset() 155 while( GpioRead( &SX126x.BUSY ) == 1 ); in SX126xWaitOnBusy() [all …]
|
D | board.c | 164 SpiInit( &SX126x.Spi, SPI_1, RADIO_MOSI, RADIO_MISO, RADIO_SCLK, NC ); in BoardInitMcu() 209 SpiDeInit( &SX126x.Spi ); in BoardDeInitMcu()
|
/loramac-node-latest/src/boards/NucleoL152/ |
D | sx1261mbxbas-board.c | 68 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoInit() 69 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 70 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 76 GpioSetInterrupt( &SX126x.DIO1, IRQ_RISING_EDGE, IRQ_HIGH_PRIORITY, dioIrq ); in SX126xIoIrqInit() 81 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoDeInit() 82 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 83 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 140 GpioInit( &SX126x.Reset, RADIO_RESET, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xReset() 142 …GpioInit( &SX126x.Reset, RADIO_RESET, PIN_ANALOGIC, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); // internal p… in SX126xReset() 148 while( GpioRead( &SX126x.BUSY ) == 1 ); in SX126xWaitOnBusy() [all …]
|
D | sx1262mbxcas-board.c | 68 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoInit() 69 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 70 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 76 GpioSetInterrupt( &SX126x.DIO1, IRQ_RISING_EDGE, IRQ_HIGH_PRIORITY, dioIrq ); in SX126xIoIrqInit() 81 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoDeInit() 82 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 83 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 140 GpioInit( &SX126x.Reset, RADIO_RESET, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xReset() 142 …GpioInit( &SX126x.Reset, RADIO_RESET, PIN_ANALOGIC, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); // internal p… in SX126xReset() 148 while( GpioRead( &SX126x.BUSY ) == 1 ); in SX126xWaitOnBusy() [all …]
|
D | sx1262mbxdas-board.c | 71 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoInit() 72 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 73 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 79 GpioSetInterrupt( &SX126x.DIO1, IRQ_RISING_EDGE, IRQ_HIGH_PRIORITY, dioIrq ); in SX126xIoIrqInit() 84 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoDeInit() 85 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 86 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 147 GpioInit( &SX126x.Reset, RADIO_RESET, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xReset() 149 …GpioInit( &SX126x.Reset, RADIO_RESET, PIN_ANALOGIC, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); // internal p… in SX126xReset() 155 while( GpioRead( &SX126x.BUSY ) == 1 ); in SX126xWaitOnBusy() [all …]
|
D | board.c | 157 SpiInit( &SX126x.Spi, SPI_1, RADIO_MOSI, RADIO_MISO, RADIO_SCLK, NC ); in BoardInitMcu() 202 SpiDeInit( &SX126x.Spi ); in BoardDeInitMcu()
|
/loramac-node-latest/src/boards/NucleoL073/ |
D | sx1261mbxbas-board.c | 68 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoInit() 69 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 70 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 76 GpioSetInterrupt( &SX126x.DIO1, IRQ_RISING_EDGE, IRQ_HIGH_PRIORITY, dioIrq ); in SX126xIoIrqInit() 81 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoDeInit() 82 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 83 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 140 GpioInit( &SX126x.Reset, RADIO_RESET, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xReset() 142 …GpioInit( &SX126x.Reset, RADIO_RESET, PIN_ANALOGIC, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); // internal p… in SX126xReset() 148 while( GpioRead( &SX126x.BUSY ) == 1 ); in SX126xWaitOnBusy() [all …]
|
D | sx1262mbxcas-board.c | 68 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoInit() 69 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 70 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 76 GpioSetInterrupt( &SX126x.DIO1, IRQ_RISING_EDGE, IRQ_HIGH_PRIORITY, dioIrq ); in SX126xIoIrqInit() 81 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoDeInit() 82 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 83 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 140 GpioInit( &SX126x.Reset, RADIO_RESET, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xReset() 142 …GpioInit( &SX126x.Reset, RADIO_RESET, PIN_ANALOGIC, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); // internal p… in SX126xReset() 148 while( GpioRead( &SX126x.BUSY ) == 1 ); in SX126xWaitOnBusy() [all …]
|
D | sx1262mbxdas-board.c | 71 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoInit() 72 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 73 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoInit() 79 GpioSetInterrupt( &SX126x.DIO1, IRQ_RISING_EDGE, IRQ_HIGH_PRIORITY, dioIrq ); in SX126xIoIrqInit() 84 GpioInit( &SX126x.Spi.Nss, RADIO_NSS, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 ); in SX126xIoDeInit() 85 GpioInit( &SX126x.BUSY, RADIO_BUSY, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 86 GpioInit( &SX126x.DIO1, RADIO_DIO_1, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xIoDeInit() 147 GpioInit( &SX126x.Reset, RADIO_RESET, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); in SX126xReset() 149 …GpioInit( &SX126x.Reset, RADIO_RESET, PIN_ANALOGIC, PIN_PUSH_PULL, PIN_NO_PULL, 0 ); // internal p… in SX126xReset() 155 while( GpioRead( &SX126x.BUSY ) == 1 ); in SX126xWaitOnBusy() [all …]
|
D | board.c | 157 SpiInit( &SX126x.Spi, SPI_1, RADIO_MOSI, RADIO_MISO, RADIO_SCLK, NC ); in BoardInitMcu() 202 SpiDeInit( &SX126x.Spi ); in BoardDeInitMcu()
|
/loramac-node-latest/src/radio/sx126x/ |
D | radio.c | 486 SX126x_t SX126x; variable 665 SX126x.ModulationParams.PacketType = PACKET_TYPE_GFSK; in RadioSetRxConfig() 667 SX126x.ModulationParams.Params.Gfsk.BitRate = datarate; in RadioSetRxConfig() 668 SX126x.ModulationParams.Params.Gfsk.ModulationShaping = MOD_SHAPING_G_BT_1; in RadioSetRxConfig() 669 …SX126x.ModulationParams.Params.Gfsk.Bandwidth = RadioGetFskBandwidthRegValue( bandwidth << 1 ); //… in RadioSetRxConfig() 671 SX126x.PacketParams.PacketType = PACKET_TYPE_GFSK; in RadioSetRxConfig() 672 … SX126x.PacketParams.Params.Gfsk.PreambleLength = ( preambleLen << 3 ); // convert byte into bit in RadioSetRxConfig() 673 SX126x.PacketParams.Params.Gfsk.PreambleMinDetect = RADIO_PREAMBLE_DETECTOR_08_BITS; in RadioSetRxConfig() 674 SX126x.PacketParams.Params.Gfsk.SyncWordLength = 3 << 3; // convert byte into bit in RadioSetRxConfig() 675 SX126x.PacketParams.Params.Gfsk.AddrComp = RADIO_ADDRESSCOMP_FILT_OFF; in RadioSetRxConfig() [all …]
|
/loramac-node-latest/src/boards/ |
D | sx126x-board.h | 189 extern SX126x_t SX126x;
|
/loramac-node-latest/ |
D | CHANGELOG.md | 133 - Added SX126x `REG_RX_GAIN` and `REG_TX_MODULATION` to the radio registers retention list 134 - Added SX126x missing registers definitions 159 - Fixed SX126x and LR1110 driver IrqFired variable management 316 - Fixed GFSK bandwidth handling for SX126x and LR1110 radios. 347 - Changed SX126x driver to only process a received packet when there is no CRC error 368 - Fixed SX126x driver missing call to `RadioStandby` in LoRa modem case inside `RadioSetRxConfig` A… 369 - Fixed SX126x driver `LoRaSymbNumTimeout` handling 448 - Added SX126x radio support 467 - Added SX126x radio support
|