![]() |
SparkFun Iridium 9604
v1.0.0
Library for the Iridium 9604 Hybrid LTE-M Cellular + Iridium Satellite (SBD) + GNSS IoT module
|
Go to the source code of this file.
SPDX-License-Identifier: MIT
Please see LICENSE.md for more details
https://github.com/sparkfun/SparkFun_Iridium_9604_Library
Platform portability layer.
Based on sfe_platform.h from the SparkFun u-blox GNSS v4 library. This library builds both as an Arduino Library and as an Espressif ESP-IDF Component. Everything that is platform-specific - apart from the UART bus class in sfe_bus.h / sfe_bus.cpp (Arduino) and sfe_bus_esp_idf.h / sfe_bus_esp_idf.cpp (ESP-IDF) - lives here:
sfe_millis() milliseconds since boot (wraps like Arduino millis()) sfe_micros() microseconds since boot (wraps like Arduino micros()) sfe_delay(ms) delay / yield to the RTOS sfe_yield() yield to the RTOS / other tasks (Arduino yield()) sfe_pin_output(pin) configure a GPIO as an output sfe_pin_input(pin) configure a GPIO as a (high-impedance) input sfe_pin_write(pin, high) drive a GPIO high or low sfe_string_t the string type used by the library API (Arduino String, or std::string on ESP-IDF) sfe_string_from_double() format a double with a given number of decimal places DEC / HEX number bases for debugPrint()
Unlike the GNSS v4 library, everything here is inside namespace SparkFun_Iridium_9604. That allows this library and the SparkFun u-blox GNSS v4 library (which has its own, global, sfe_platform.h helpers) to be used together in the same application - see the AssistNow and NTRIP examples.
The platform is selected automatically: ARDUINO defined -> Arduino (this includes arduino-esp32 used as an ESP-IDF component) ESP_PLATFORM defined -> native ESP-IDF