Lines Matching refs:SX126x

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()
162 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xWakeup()
164 SpiInOut( &SX126x.Spi, RADIO_GET_STATUS ); in SX126xWakeup()
165 SpiInOut( &SX126x.Spi, 0x00 ); in SX126xWakeup()
167 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xWakeup()
182 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xWriteCommand()
184 SpiInOut( &SX126x.Spi, ( uint8_t )command ); in SX126xWriteCommand()
188 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteCommand()
191 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xWriteCommand()
205 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xReadCommand()
207 SpiInOut( &SX126x.Spi, ( uint8_t )command ); in SX126xReadCommand()
208 status = SpiInOut( &SX126x.Spi, 0x00 ); in SX126xReadCommand()
211 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadCommand()
214 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xReadCommand()
225 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xWriteRegisters()
227 SpiInOut( &SX126x.Spi, RADIO_WRITE_REGISTER ); in SX126xWriteRegisters()
228 SpiInOut( &SX126x.Spi, ( address & 0xFF00 ) >> 8 ); in SX126xWriteRegisters()
229 SpiInOut( &SX126x.Spi, address & 0x00FF ); in SX126xWriteRegisters()
233 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteRegisters()
236 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xWriteRegisters()
250 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xReadRegisters()
252 SpiInOut( &SX126x.Spi, RADIO_READ_REGISTER ); in SX126xReadRegisters()
253 SpiInOut( &SX126x.Spi, ( address & 0xFF00 ) >> 8 ); in SX126xReadRegisters()
254 SpiInOut( &SX126x.Spi, address & 0x00FF ); in SX126xReadRegisters()
255 SpiInOut( &SX126x.Spi, 0 ); in SX126xReadRegisters()
258 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadRegisters()
260 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xReadRegisters()
276 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xWriteBuffer()
278 SpiInOut( &SX126x.Spi, RADIO_WRITE_BUFFER ); in SX126xWriteBuffer()
279 SpiInOut( &SX126x.Spi, offset ); in SX126xWriteBuffer()
282 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteBuffer()
284 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xWriteBuffer()
293 GpioWrite( &SX126x.Spi.Nss, 0 ); in SX126xReadBuffer()
295 SpiInOut( &SX126x.Spi, RADIO_READ_BUFFER ); in SX126xReadBuffer()
296 SpiInOut( &SX126x.Spi, offset ); in SX126xReadBuffer()
297 SpiInOut( &SX126x.Spi, 0 ); in SX126xReadBuffer()
300 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadBuffer()
302 GpioWrite( &SX126x.Spi.Nss, 1 ); in SX126xReadBuffer()
342 return GpioRead( &SX126x.DIO1 ); in SX126xGetDio1PinState()