Struct attiny_hal::Attiny
source · pub struct Attiny;
Trait Implementations§
source§impl AdcChannel<Attiny, ADC> for Temperature
impl AdcChannel<Attiny, ADC> for Temperature
source§impl AdcOps<Attiny> for ADC
impl AdcOps<Attiny> for ADC
§type Settings = AdcSettings
type Settings = AdcSettings
Settings type for this ADC.
source§fn raw_init(&mut self, settings: Self::Settings)
fn raw_init(&mut self, settings: Self::Settings)
Initialize the ADC peripheral with the specified settings. Read more
source§fn raw_read_adc(&self) -> u16
fn raw_read_adc(&self) -> u16
Read out the ADC data register. Read more
source§fn raw_is_converting(&self) -> bool
fn raw_is_converting(&self) -> bool
Check whether the ADC is currently converting a signal. Read more
source§fn raw_start_conversion(&mut self)
fn raw_start_conversion(&mut self)
Start a conversion on the currently selected channel. Read more
source§fn raw_set_channel(&mut self, channel: Self::Channel)
fn raw_set_channel(&mut self, channel: Self::Channel)
Set the multiplexer to a certain channel. Read more
source§fn raw_enable_channel(&mut self, channel: Self::Channel)
fn raw_enable_channel(&mut self, channel: Self::Channel)
Set the DIDR (Digital Input Disable) for a certain channel. Read more
source§fn raw_disable_channel(&mut self, channel: Self::Channel)
fn raw_disable_channel(&mut self, channel: Self::Channel)
Clear the DIDR (Digital Input Disable) for a certain channel. Read more
source§impl EepromOps<Attiny> for EEPROM
impl EepromOps<Attiny> for EEPROM
const CAPACITY: u16 = 512u16
source§fn raw_read_byte(&self, address: u16) -> u8
fn raw_read_byte(&self, address: u16) -> u8
Read a single byte from offset
address
. Does not do a bounds check. Read moresource§fn raw_write_byte(&mut self, address: u16, data: u8)
fn raw_write_byte(&mut self, address: u16, data: u8)
Erase and write a single byte at offset
address
. Does not do a bounds check. Read moresource§fn raw_erase_byte(&mut self, address: u16)
fn raw_erase_byte(&mut self, address: u16)
Erase a single byte at offset
address
. Does not do a bounds check. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Attiny
impl Send for Attiny
impl Sync for Attiny
impl Unpin for Attiny
impl UnwindSafe for Attiny
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more