Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/diondokter/device-driver
/ functions
Functions
461 in github.com/diondokter/device-driver
⨍
Functions
461
◇
Types & classes
148
↓ 80 callers
Method
iter
(&self)
dd-manifest-tree/src/lib.rs:333
↓ 29 callers
Method
as_string
(&self)
dd-manifest-tree/src/lib.rs:109
↓ 24 callers
Method
type_name
(&self)
dd-manifest-tree/src/lib.rs:60
↓ 20 callers
Method
foo
( &mut self, )
tests/cases/address_types/address_types.rs:79
↓ 18 callers
Method
read_async
Read some bytes from this source into the specified buffer, returning how many bytes were read. Mirror function of [embedded_io_async::Read::read].
device-driver/src/buffer.rs:193
↓ 17 callers
Method
read
Read some bytes from this source into the specified buffer, returning how many bytes were read. Mirror function of [embedded_io::Read::read].
device-driver/src/buffer.rs:122
↓ 16 callers
Function
run_pass
Checks if all names are unique to prevent later name collisions. If there is a collision an error is returned.
generation/src/mir/passes/names_unique.rs:9
↓ 13 callers
Method
get
(&self, key: &str)
dd-manifest-tree/src/lib.rs:337
↓ 12 callers
Method
write
(&mut self, address: Self::AddressType, buf: &[u8])
device-driver/tests/basic-buffer.rs:24
↓ 10 callers
Method
as_map
(&self)
dd-manifest-tree/src/lib.rs:125
↓ 10 callers
Method
as_uint
(&self)
dd-manifest-tree/src/lib.rs:88
↓ 10 callers
Method
interface
A reference to the interface used to communicate with the device
tests/cases/compile_time_explosion/compile_time_explosion.rs:24
↓ 10 callers
Method
read
(&mut self, address: Self::AddressType, buf: &mut [u8])
device-driver/tests/basic-buffer.rs:35
↓ 9 callers
Method
as_int
(&self)
dd-manifest-tree/src/lib.rs:95
↓ 9 callers
Method
get_inner_buffer_mut
(&mut self)
tests/cases/address_types/address_types.rs:136
↓ 9 callers
Method
name
Get a reference to the name of the specific object
generation/src/mir/mod.rs:185
↓ 9 callers
Function
run_pass
Validate that the bit ranges of fields fall within the max size and don't have overlap if they're not allowed
generation/src/mir/passes/bit_ranges_validated.rs:10
↓ 8 callers
Method
dispatch_command
( &mut self, address: Self::AddressType, _size_bits_in: u32, input: &[u8],
device-driver/tests/basic-command.rs:12
↓ 8 callers
Function
recurse_objects_mut
( objects: &mut [Object], f: &mut impl FnMut(&mut Object) -> anyhow::Result<()>, )
generation/src/mir/passes/mod.rs:31
↓ 7 callers
Function
get_cfg_attr
(attrs: &dsl_hir::AttributeList)
generation/src/dsl_hir/mir_transform.rs:160
↓ 7 callers
Function
get_description
(attrs: &dsl_hir::AttributeList)
generation/src/dsl_hir/mir_transform.rs:146
↓ 7 callers
Method
get_inner_buffer
(&self)
tests/cases/address_types/address_types.rs:133
↓ 7 callers
Function
transform_access
(value: &impl Value)
generation/src/manifest/mod.rs:96
↓ 6 callers
Function
anyhow_error_to_compile_error
(error: anyhow::Error)
generation/src/lib.rs:140
↓ 6 callers
Method
as_bool
(&self)
dd-manifest-tree/src/lib.rs:81
↓ 6 callers
Method
contains_key
(&self, key: &str)
dd-manifest-tree/src/lib.rs:341
↓ 6 callers
Method
id
(&self)
generation/src/mir/mod.rs:673
↓ 6 callers
Function
main
()
tests/src/main.rs:3
↓ 6 callers
Function
recurse_objects
( objects: &'o [Object], f: &mut impl FnMut(&'o Object) -> anyhow::Result<()>, )
generation/src/mir/passes/mod.rs:61
↓ 6 callers
Function
run_pass
Checks if the reset values of registers (and ref registers) are valid. Also converts integer values to the array representation using the correct bit
generation/src/mir/passes/reset_values_converted.rs:23
↓ 6 callers
Function
transform_repeat
(value: &impl Value)
generation/src/manifest/mod.rs:656
↓ 6 callers
Method
write_register
( &mut self, address: Self::AddressType, _size_bits: u32, data: &[u8], )
device-driver/tests/refs.rs:27
↓ 5 callers
Method
as_array
(&self)
generation/src/mir/mod.rs:577
↓ 5 callers
Method
modify
Modify the existing register value. The register is read, the value is then passed to the closure for making changes. The result is then written back
device-driver/src/register.rs:152
↓ 5 callers
Function
transform
(value: impl Value)
generation/src/manifest/mod.rs:9
↓ 5 callers
Method
value
Read the `value` field of the register.
tests/cases/basic_command/basic_command.rs:120
↓ 5 callers
Method
write_with_zero
Write to the register. The closure is given the write object initialized to all zero.
device-driver/src/register.rs:108
↓ 4 callers
Method
dispatch
Dispatch the command to the device
device-driver/src/command.rs:81
↓ 4 callers
Method
field_sets_mut
Get an iterator over all the field sets in the object
generation/src/mir/mod.rs:207
↓ 4 callers
Function
find_min_max_addresses
( objects: &[Object], filter: impl Fn(&Object) -> bool, )
generation/src/mir/passes/mod.rs:91
↓ 4 callers
Method
name_mut
Get a mutable reference to the name of the specific object
generation/src/mir/mod.rs:174
↓ 4 callers
Method
set_value
Write the `value` field of the register.
tests/cases/basic_command/basic_command.rs:131
↓ 4 callers
Function
transform_mir
(mut mir: mir::Device, driver_name: &str)
generation/src/lib.rs:109
↓ 4 callers
Function
transform_yaml
(source: &str, driver_name: &str)
generation/src/lib.rs:68
↓ 4 callers
Method
type_name
(&self)
generation/src/mir/mod.rs:368
↓ 3 callers
Method
interface
A reference to the interface used to communicate with the device
tests/cases/fieldset_access/fieldset_access.rs:24
↓ 3 callers
Method
interface
A reference to the interface used to communicate with the device
tests/cases/address_types/address_types.rs:24
↓ 3 callers
Function
repeat_to_method_kind
(repeat: &Option<mir::Repeat>)
generation/src/mir/lir_transform.rs:576
↓ 3 callers
Function
run_pass
Checks if enums are fully specified and determines the generation style
generation/src/mir/passes/enum_values_checked.rs:9
↓ 3 callers
Function
transform_bit_order
(value: &impl Value)
generation/src/manifest/mod.rs:117
↓ 3 callers
Function
transform_byte_order
(value: &impl Value)
generation/src/manifest/mod.rs:107
↓ 3 callers
Function
transform_dsl
(input: proc_macro2::TokenStream, driver_name: &str)
generation/src/lib.rs:17
↓ 3 callers
Function
transform_field
( field: &dsl_hir::Field, global_config: &mir::GlobalConfig, )
generation/src/dsl_hir/mir_transform.rs:503
↓ 3 callers
Function
transform_field_set
Though it is correct... it's too many args
generation/src/mir/lir_transform.rs:383
↓ 3 callers
Function
transform_fields
(value: &impl Value)
generation/src/manifest/mod.rs:681
↓ 3 callers
Function
transform_integer_type
(value: &impl Value)
generation/src/manifest/mod.rs:127
↓ 3 callers
Function
validate_len
(field_set: &[Field], size_bits: u32, object_name: &str)
generation/src/mir/passes/bit_ranges_validated.rs:37
↓ 3 callers
Function
validate_overlap
(field_set: &[Field], object_name: &str)
generation/src/mir/passes/bit_ranges_validated.rs:55
↓ 3 callers
Method
value_ro
Read the `value_ro` field of the register.
tests/cases/fieldset_access/fieldset_access.rs:172
↓ 3 callers
Method
value_rw
Read the `value_rw` field of the register.
tests/cases/fieldset_access/fieldset_access.rs:183
↓ 2 callers
Function
_private_transform_dsl_mir
( input: proc_macro2::TokenStream, )
generation/src/lib.rs:28
↓ 2 callers
Function
_private_transform_json_mir
(source: &str)
generation/src/lib.rs:56
↓ 2 callers
Function
_private_transform_toml_mir
(source: &str)
generation/src/lib.rs:102
↓ 2 callers
Function
_private_transform_yaml_mir
(source: &str)
generation/src/lib.rs:79
↓ 2 callers
Method
as_block_mut
(&mut self)
generation/src/mir/mod.rs:228
↓ 2 callers
Method
as_register
(&self)
generation/src/mir/mod.rs:244
↓ 2 callers
Method
as_register_mut
(&mut self)
generation/src/mir/mod.rs:236
↓ 2 callers
Method
bar
(&mut self)
tests/cases/address_types/address_types.rs:97
↓ 2 callers
Function
collect_into_blocks
( block: BorrowedBlock, is_root: bool, global_config: &mir::GlobalConfig, device_objects: &[mi
generation/src/mir/lir_transform.rs:63
↓ 2 callers
Method
combine
(&self, other: &Self)
generation/src/mir/mod.rs:599
↓ 2 callers
Function
convert_reset_value
( reset_value: ResetValue, bit_order: BitOrder, size_bits: u32, object_type_name: &str, ob
generation/src/mir/passes/reset_values_converted.rs:119
↓ 2 callers
Method
field_sets
Get an iterator over all the field sets in the object
generation/src/mir/mod.rs:218
↓ 2 callers
Method
foo
( &mut self, )
tests/cases/basic_register/basic_register.rs:79
↓ 2 callers
Method
foo
\\\\\\/\/\/\////\/\/;{}'"`'
tests/cases/description_string_escapes/description_string_escapes.rs:80
↓ 2 callers
Method
foo_0
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:157
↓ 2 callers
Method
foo_1
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:181
↓ 2 callers
Method
foo_2
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:205
↓ 2 callers
Method
foo_3
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:229
↓ 2 callers
Method
foo_4
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:253
↓ 2 callers
Method
foo_5
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:277
↓ 2 callers
Method
foo_6
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:301
↓ 2 callers
Method
foo_7
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:325
↓ 2 callers
Method
foo_8
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:349
↓ 2 callers
Method
foo_9
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:373
↓ 2 callers
Method
foo_ro
( &mut self, )
tests/cases/fieldset_access/fieldset_access.rs:83
↓ 2 callers
Method
foo_rw
( &mut self, )
tests/cases/fieldset_access/fieldset_access.rs:101
↓ 2 callers
Method
get_block_object_list
(&self)
generation/src/mir/mod.rs:166
↓ 2 callers
Function
get_target_byte_order
(reg: &Register, device: &Device)
generation/src/mir/passes/reset_values_converted.rs:112
↓ 2 callers
Method
inner
(&self)
generation/src/mir/mod.rs:617
↓ 2 callers
Method
not
(mut self)
tests/cases/address_types/address_types.rs:210
↓ 2 callers
Method
parse
(input: syn::parse::ParseStream)
macros/src/lib.rs:147
↓ 2 callers
Method
parse
(input: ParseStream)
generation/src/dsl_hir/mod.rs:21
↓ 2 callers
Function
pivot_msb0
(start: usize, end: usize, i: usize)
device-driver/src/ops.rs:198
↓ 2 callers
Method
read_register
( &mut self, address: Self::AddressType, _size_bits: u32, data: &mut [u8],
device-driver/tests/refs.rs:38
↓ 2 callers
Function
recurse_objects_with_depth
( objects: &'o [Object], f: &mut impl FnMut(&'o Object, usize) -> anyhow::Result<()>, )
generation/src/mir/passes/mod.rs:68
↓ 2 callers
Function
recurse_objects_with_depth_mut
( objects: &mut [Object], f: &mut impl FnMut(&mut Object, usize) -> anyhow::Result<()>, )
generation/src/mir/passes/mod.rs:38
↓ 2 callers
Function
run_pass
Checks if the byte order is set for all registers and commands that need it and fills it out for the ones that aren't specified
generation/src/mir/passes/byte_order_specified.rs:8
↓ 2 callers
Function
run_passes
(device: &mut Device)
generation/src/lir/passes/mod.rs:5
↓ 2 callers
Function
search_object
(name: &str, objects: &'d [Object])
generation/src/mir/passes/mod.rs:144
↓ 2 callers
Method
sign_extend
(self, sign_bit_index: usize)
device-driver/src/ops.rs:338
next →
1–100 of 461, ranked by callers