MCPcopy Index your code

hub / github.com/eldruin/eeprom24x-rs / functions

Functions38 in github.com/eldruin/eeprom24x-rs

↓ 7 callersMethodwrite_byte
Write a single byte in an address. After writing a byte, the EEPROM enters an internally-timed write cycle to the nonvolatile memory. During this tim
src/eeprom24x.rs:64
↓ 5 callersFunctiondestroy
(eeprom: Eeprom24x<I2cMock, T, V, S>)
tests/common/mod.rs:18
↓ 4 callersMethodaddr
Get slave address as u8
src/slave_addr.rs:12
↓ 3 callersMethoddestroy
Destroy driver instance, return I²C bus and timer instance.
src/storage.rs:28
↓ 3 callersMethodget_device_address
(&self, memory_address: u32)
src/eeprom24x.rs:39
↓ 2 callersFunctionassert_invalid_address
only available since Rust 1.31: #[allow(clippy::needless_pass_by_value)]
tests/invalid_address.rs:10
↓ 2 callersMethodread_byte
Read a single byte from an address.
src/eeprom24x.rs:75
↓ 1 callersMethodcapacity
(&self)
src/storage.rs:45
↓ 1 callersMethoddevaddr
Get the device address possibly including some bits from the memory address, e.g. for AT24C16 the 8 bit device address is: 1 0 1 0 A10 A9 A8 R/W , i.e
src/slave_addr.rs:29
↓ 1 callersMethodread
(&mut self, offset: u32, bytes: &mut [u8])
src/storage.rs:41
↓ 1 callersMethodread_data
Read starting in an address as many bytes as necessary to fill the data array provided.
src/eeprom24x.rs:87
↓ 1 callersFunctionrun
(eeprom: &mut impl Eeprom24xTrait<Error = E>)
examples/linux_trait.rs:6
↓ 1 callersFunctionsecure_region_addr
Determine the peripheral address for accessing the secure region of 24CS devices.
src/serial_number.rs:9
↓ 1 callersMethodwrite
(&mut self, mut offset: u32, mut bytes: &[u8])
src/storage.rs:57
↓ 1 callersFunctionwrite_byte
(eeprom: &mut impl Eeprom24xTrait<Error = E>)
tests/interface.rs:256
Functionassemble_devaddr
()
src/slave_addr.rs:71
Functionassert_too_much_data
only available since Rust 1.31: #[allow(clippy::needless_pass_by_value)]
tests/interface.rs:169
Functioncan_generate_alternative_addresses
()
src/slave_addr.rs:50
Functioncan_pass_device_to_function
()
tests/interface.rs:261
Functioncan_use_device_address_for_memory_addressing_1byte
()
tests/interface.rs:241
Functioncan_use_device_address_for_memory_addressing_2bytes
()
tests/interface.rs:249
Functioncannot_write_to_position_over_capacity_1byte
()
tests/invalid_address.rs:52
Functioncannot_write_to_position_over_capacity_2bytes
()
tests/invalid_address.rs:59
Functioncheck_addr_assert_fails
()
tests/invalid_address.rs:23
Functioncheck_addr_assert_matches
()
tests/invalid_address.rs:17
Functioncheck_data_assert_fails
()
tests/interface.rs:182
Functioncheck_data_assert_matches
()
tests/interface.rs:176
Methoddefault
Default slave address
src/slave_addr.rs:5
Functiondefault_address_is_correct
()
src/slave_addr.rs:45
Methoddestroy
Destroy driver instance, return I²C bus instance.
src/eeprom24x.rs:30
Methodfill_address
(address: u32, payload: &mut [u8])
src/eeprom24x.rs:13
Functionmain
()
examples/linux.rs:5
Functionmain
()
examples/linux_trait.rs:22
Methodnew
Create a new Storage instance wrapping the given Eeprom
src/storage.rs:18
Methodnew_24x00
Create a new instance of a 24x00 device (e.g. 24C00)
src/eeprom24x.rs:121
Methodread_current_address
Read the contents of the last address accessed during the last read or write operation, _incremented by one_. Note: This may not be available on your
src/eeprom24x.rs:106
Methodread_unique_serial
Read the 128-bit unique serial number.
src/serial_number.rs:27
Functionstorage_new
( eeprom: Eeprom24x<I2cMock, PS, AS, SN>, )
tests/storage-interface.rs:15