Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/eldruin/eeprom24x-rs
/ functions
Functions
38 in github.com/eldruin/eeprom24x-rs
⨍
Functions
38
◇
Types & classes
18
↓ 7 callers
Method
write_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 callers
Function
destroy
(eeprom: Eeprom24x<I2cMock, T, V, S>)
tests/common/mod.rs:18
↓ 4 callers
Method
addr
Get slave address as u8
src/slave_addr.rs:12
↓ 3 callers
Method
destroy
Destroy driver instance, return I²C bus and timer instance.
src/storage.rs:28
↓ 3 callers
Method
get_device_address
(&self, memory_address: u32)
src/eeprom24x.rs:39
↓ 2 callers
Function
assert_invalid_address
only available since Rust 1.31: #[allow(clippy::needless_pass_by_value)]
tests/invalid_address.rs:10
↓ 2 callers
Method
read_byte
Read a single byte from an address.
src/eeprom24x.rs:75
↓ 1 callers
Method
capacity
(&self)
src/storage.rs:45
↓ 1 callers
Method
devaddr
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 callers
Method
read
(&mut self, offset: u32, bytes: &mut [u8])
src/storage.rs:41
↓ 1 callers
Method
read_data
Read starting in an address as many bytes as necessary to fill the data array provided.
src/eeprom24x.rs:87
↓ 1 callers
Function
run
(eeprom: &mut impl Eeprom24xTrait<Error = E>)
examples/linux_trait.rs:6
↓ 1 callers
Function
secure_region_addr
Determine the peripheral address for accessing the secure region of 24CS devices.
src/serial_number.rs:9
↓ 1 callers
Method
write
(&mut self, mut offset: u32, mut bytes: &[u8])
src/storage.rs:57
↓ 1 callers
Function
write_byte
(eeprom: &mut impl Eeprom24xTrait<Error = E>)
tests/interface.rs:256
Function
assemble_devaddr
()
src/slave_addr.rs:71
Function
assert_too_much_data
only available since Rust 1.31: #[allow(clippy::needless_pass_by_value)]
tests/interface.rs:169
Function
can_generate_alternative_addresses
()
src/slave_addr.rs:50
Function
can_pass_device_to_function
()
tests/interface.rs:261
Function
can_use_device_address_for_memory_addressing_1byte
()
tests/interface.rs:241
Function
can_use_device_address_for_memory_addressing_2bytes
()
tests/interface.rs:249
Function
cannot_write_to_position_over_capacity_1byte
()
tests/invalid_address.rs:52
Function
cannot_write_to_position_over_capacity_2bytes
()
tests/invalid_address.rs:59
Function
check_addr_assert_fails
()
tests/invalid_address.rs:23
Function
check_addr_assert_matches
()
tests/invalid_address.rs:17
Function
check_data_assert_fails
()
tests/interface.rs:182
Function
check_data_assert_matches
()
tests/interface.rs:176
Method
default
Default slave address
src/slave_addr.rs:5
Function
default_address_is_correct
()
src/slave_addr.rs:45
Method
destroy
Destroy driver instance, return I²C bus instance.
src/eeprom24x.rs:30
Method
fill_address
(address: u32, payload: &mut [u8])
src/eeprom24x.rs:13
Function
main
()
examples/linux.rs:5
Function
main
()
examples/linux_trait.rs:22
Method
new
Create a new Storage instance wrapping the given Eeprom
src/storage.rs:18
Method
new_24x00
Create a new instance of a 24x00 device (e.g. 24C00)
src/eeprom24x.rs:121
Method
read_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
Method
read_unique_serial
Read the 128-bit unique serial number.
src/serial_number.rs:27
Function
storage_new
( eeprom: Eeprom24x<I2cMock, PS, AS, SN>, )
tests/storage-interface.rs:15