Home
last modified time | relevance | path

Searched refs:SX126x (Results 1 – 15 of 15) sorted by relevance

/loramac-node-latest/src/boards/NucleoL476/
Dsx1261mbxbas-board.c68 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 …]
Dsx1262mbxcas-board.c68 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 …]
Dsx1262mbxdas-board.c71 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 …]
Dboard.c164 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/
Dsx1261mbxbas-board.c68 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 …]
Dsx1262mbxcas-board.c68 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 …]
Dsx1262mbxdas-board.c71 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 …]
Dboard.c157 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/
Dsx1261mbxbas-board.c68 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 …]
Dsx1262mbxcas-board.c68 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 …]
Dsx1262mbxdas-board.c71 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 …]
Dboard.c157 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/
Dradio.c486 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()
669SX126x.ModulationParams.Params.Gfsk.Bandwidth = RadioGetFskBandwidthRegValue( bandwidth << 1 ); //… in RadioSetRxConfig()
671 SX126x.PacketParams.PacketType = PACKET_TYPE_GFSK; in RadioSetRxConfig()
672SX126x.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/
Dsx126x-board.h189 extern SX126x_t SX126x;
/loramac-node-latest/
DCHANGELOG.md133 - 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