pub struct Port<'a> { /* private fields */ }
Implementations§
Source§impl Port<'_>
impl Port<'_>
pub fn handle_interrupt(&self)
pub fn enable_uart(&self, tx_pin: &GpioPin<'_>, rx_pin: &GpioPin<'_>)
Sourcepub fn enable_sx1262_radio_pins(&self)
pub fn enable_sx1262_radio_pins(&self)
This function configures some GPIO pins on the Apollo3 to allow communication with a SX1262 LoRa module.
The pin mapping is setup to match what is used by the NM180100 SoC (shown below)
IOM3: Semtech SX1262 Apollo 3 Pin Number | Apollo 3 Name | SX1262 Pin Number | SX1262 Name | SX1262 Description H6 | GPIO 36 | 19 | NSS | SPI slave select J6 | GPIO 38 | 17 | MOSI | SPI slave input J5 | GPIO 43 | 16 | MISO | SPI slave output H5 | GPIO 42 | 18 | SCK | SPI clock input J8 | GPIO 39 | 14 | BUSY | Radio busy indicator J9 | GPIO 40 | 13 | DIO1 | Multipurpose digital I/O H9 | GPIO 47 | 6 | DIO3 | Multipurpose digital I/O J7 | GPIO 44 | 15 | NRESET | Radio reset signal, active low
This should be used by the lora_things_plus board or any other board using the Apollo3 based NM180100 SoC. This function would also work for any Apollo3 board using the same pins and IOM as specified above.