Skip to content

Commit c39c71d

Browse files
committed
Move the top level module documentation summaries into each respective source file instead of being in lib.rs
1 parent d47521c commit c39c71d

File tree

6 files changed

+33
-7
lines changed

6 files changed

+33
-7
lines changed

esp32-wroom-rp/src/gpio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! GPIO pin control interface of a connected ESP32-WROOM target Wifi board.
1+
//! GPIO pin control interface of a connected ESP32-WROOM target WiFi board.
22
//!
33
//! ## Usage
44
//!

esp32-wroom-rp/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,10 @@
149149
#![warn(missing_docs)]
150150
#![cfg_attr(not(test), no_std)]
151151

152-
/// Fundamental interface for creating and send/receiving data to/from a TCP server.
153152
pub mod tcp_client;
154-
155153
pub mod gpio;
156-
/// Fundamental interface for controlling a connected ESP32-WROOM NINA firmware-based Wifi board.
157154
pub mod wifi;
158-
159-
/// Responsible for interactions over a WiFi network and also contains related types.
160155
pub mod network;
161-
/// Responsible for interactions with NINA firmware over a data bus.
162156
pub mod protocol;
163157

164158
mod spi;

esp32-wroom-rp/src/network.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//! Defines common network functions, types and error definitions.
2+
//!
3+
//! ## Usage
4+
//!
5+
//! ```no_run
6+
//! ```
7+
//!
8+
19
use defmt::{write, Format, Formatter};
210

311
/// A four byte array type alias representing an IP address.

esp32-wroom-rp/src/protocol.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//! Defines functions, types and error definitions related to the WiFiNINA protocol communication specification.
2+
//!
3+
//! ## Usage
4+
//!
5+
//! ```no_run
6+
//! ```
7+
//!
8+
19
pub(crate) mod operation;
210

311
use embedded_hal::blocking::delay::DelayMs;

esp32-wroom-rp/src/tcp_client.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//! Send/receive data to/from a TCP server.
2+
//!
3+
//! ## Usage
4+
//!
5+
//! ```no_run
6+
//! ```
7+
//!
8+
19
use super::{Error, ARRAY_LENGTH_PLACEHOLDER};
210
use crate::{network::NetworkError, wifi::Wifi};
311

esp32-wroom-rp/src/wifi.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//! Perform common core WiFi functions such as join a network, resolve a DNS hostname, etc.
2+
//!
3+
//! ## Usage
4+
//!
5+
//! ```no_run
6+
//! ```
7+
//!
8+
19
use embedded_hal::blocking::delay::DelayMs;
210
use embedded_hal::blocking::spi::Transfer;
311

0 commit comments

Comments
 (0)