//! Pinnacle's cellular modem, for ordinary phone calls and texts: how //! people are reached who cannot be peer to peer. A pure state machine over AT //! commands (ITU-T V.250 and 3GPP TS 27.007, the set every voice modem //! speaks: Quectel's EG25-G in the PinePhone Pro among them): bytes from //! the modem go in through [`Modem::receive`], bytes for it come out of //! [`Modem::transmit`], and what happened comes out of [`Modem::event`]. //! Time is a parameter. The same code runs in the `phone` service against //! the device's modem and in host tests against [`sim`], a simulated modem //! and the network between several. //! //! What it does: opens the SIM (asking for its PIN when it has one), //! follows the network registration, dials, answers, declines and hangs //! up, and tells who is calling; and sends and receives texts (SMS, as //! PDUs: [`pdu`]). The call's sound is not here: a voice //! modem carries it on its own audio interface (PCM to the board's codec), //! which is the board's driver. #![no_std] extern crate alloc; pub mod host; pub mod number; pub mod pdu; pub mod sim; pub use host::{End, Event, Modem}; #[cfg(test)] mod tests;