Lines Matching refs:SX126x

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()
155 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xWakeup()
157 SpiInOut( &SX126x.Spi, RADIO_GET_STATUS ); in SX126xWakeup()
158 SpiInOut( &SX126x.Spi, 0x00 ); in SX126xWakeup()
160 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xWakeup()
175 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xWriteCommand()
177 SpiInOut( &SX126x.Spi, ( uint8_t )command ); in SX126xWriteCommand()
181 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteCommand()
184 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xWriteCommand()
198 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xReadCommand()
200 SpiInOut( &SX126x.Spi, ( uint8_t )command ); in SX126xReadCommand()
201 status = SpiInOut( &SX126x.Spi, 0x00 ); in SX126xReadCommand()
204 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadCommand()
207 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xReadCommand()
218 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xWriteRegisters()
220 SpiInOut( &SX126x.Spi, RADIO_WRITE_REGISTER ); in SX126xWriteRegisters()
221 SpiInOut( &SX126x.Spi, ( address & 0xFF00 ) >> 8 ); in SX126xWriteRegisters()
222 SpiInOut( &SX126x.Spi, address & 0x00FF ); in SX126xWriteRegisters()
226 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteRegisters()
229 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xWriteRegisters()
243 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xReadRegisters()
245 SpiInOut( &SX126x.Spi, RADIO_READ_REGISTER ); in SX126xReadRegisters()
246 SpiInOut( &SX126x.Spi, ( address & 0xFF00 ) >> 8 ); in SX126xReadRegisters()
247 SpiInOut( &SX126x.Spi, address & 0x00FF ); in SX126xReadRegisters()
248 SpiInOut( &SX126x.Spi, 0 ); in SX126xReadRegisters()
251 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadRegisters()
253 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xReadRegisters()
269 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xWriteBuffer()
271 SpiInOut( &SX126x.Spi, RADIO_WRITE_BUFFER ); in SX126xWriteBuffer()
272 SpiInOut( &SX126x.Spi, offset ); in SX126xWriteBuffer()
275 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteBuffer()
277 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xWriteBuffer()
286 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xReadBuffer()
288 SpiInOut( &SX126x.Spi, RADIO_READ_BUFFER ); in SX126xReadBuffer()
289 SpiInOut( &SX126x.Spi, offset ); in SX126xReadBuffer()
290 SpiInOut( &SX126x.Spi, 0 ); in SX126xReadBuffer()
293 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadBuffer()
295 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xReadBuffer()
335 return GpioRead( &SX126x.DIO1 ); in SX126xGetDio1PinState()