Enum arducam_mega::CameraType
source · #[repr(u8)]
pub enum CameraType {
OV5640,
OV3640,
Unknown(u8),
}
Expand description
Represents the type of camera connected to the SPI bus
This enum is typically returned by ArducamMega::get_camera_type
, and indicates what kind of
camera was detected on the SPI bus.
Please note: The value 0x82
for OV3640
is a guess based on the Arducam SDK. Please
submit an issue on GitHub if you have a 3MP Mega and can confirm that this works. Likewise, if
your camera reports the Unknown(u8)
variant, please get in touch so we can add support for it
in the library.
Variants§
Trait Implementations§
source§impl Clone for CameraType
impl Clone for CameraType
source§fn clone(&self) -> CameraType
fn clone(&self) -> CameraType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CameraType
impl Debug for CameraType
source§impl From<u8> for CameraType
impl From<u8> for CameraType
source§impl PartialEq<CameraType> for CameraType
impl PartialEq<CameraType> for CameraType
source§fn eq(&self, other: &CameraType) -> bool
fn eq(&self, other: &CameraType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.