Struct b15f::b15f::B15F

source · []
pub struct B15F {}
Expand description

Structure representing the driver for the board 15

Implementations

Creates a new instance of the B15

This function will establish a connection to a connected B15 and return a handle to interact with it. Only one such instance should exist per program; calling B15F::new() more than once might lead to unexpected behaviour.

Examples
use b15f::B15F;
 
let drv = B15F::new().unwrap();

Yields information about the installed firmware on the B15

Returns an array of strings, where each string contains a piece of information stored on the B15

Examples
use b15f::B15F;
 
let drv = B15F::new().unwrap();
 
// Print each bit of information on a new line
drv.get_board_info()
	.iter()
	.for_each(|info| println!("{info}"));

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.