MCPcopy Index your code

hub / github.com/diondokter/device-driver / functions

Functions461 in github.com/diondokter/device-driver

↓ 80 callersMethoditer
(&self)
dd-manifest-tree/src/lib.rs:333
↓ 29 callersMethodas_string
(&self)
dd-manifest-tree/src/lib.rs:109
↓ 24 callersMethodtype_name
(&self)
dd-manifest-tree/src/lib.rs:60
↓ 20 callersMethodfoo
( &mut self, )
tests/cases/address_types/address_types.rs:79
↓ 18 callersMethodread_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 callersMethodread
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 callersFunctionrun_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 callersMethodget
(&self, key: &str)
dd-manifest-tree/src/lib.rs:337
↓ 12 callersMethodwrite
(&mut self, address: Self::AddressType, buf: &[u8])
device-driver/tests/basic-buffer.rs:24
↓ 10 callersMethodas_map
(&self)
dd-manifest-tree/src/lib.rs:125
↓ 10 callersMethodas_uint
(&self)
dd-manifest-tree/src/lib.rs:88
↓ 10 callersMethodinterface
A reference to the interface used to communicate with the device
tests/cases/compile_time_explosion/compile_time_explosion.rs:24
↓ 10 callersMethodread
(&mut self, address: Self::AddressType, buf: &mut [u8])
device-driver/tests/basic-buffer.rs:35
↓ 9 callersMethodas_int
(&self)
dd-manifest-tree/src/lib.rs:95
↓ 9 callersMethodget_inner_buffer_mut
(&mut self)
tests/cases/address_types/address_types.rs:136
↓ 9 callersMethodname
Get a reference to the name of the specific object
generation/src/mir/mod.rs:185
↓ 9 callersFunctionrun_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 callersMethoddispatch_command
( &mut self, address: Self::AddressType, _size_bits_in: u32, input: &[u8],
device-driver/tests/basic-command.rs:12
↓ 8 callersFunctionrecurse_objects_mut
( objects: &mut [Object], f: &mut impl FnMut(&mut Object) -> anyhow::Result<()>, )
generation/src/mir/passes/mod.rs:31
↓ 7 callersFunctionget_cfg_attr
(attrs: &dsl_hir::AttributeList)
generation/src/dsl_hir/mir_transform.rs:160
↓ 7 callersFunctionget_description
(attrs: &dsl_hir::AttributeList)
generation/src/dsl_hir/mir_transform.rs:146
↓ 7 callersMethodget_inner_buffer
(&self)
tests/cases/address_types/address_types.rs:133
↓ 7 callersFunctiontransform_access
(value: &impl Value)
generation/src/manifest/mod.rs:96
↓ 6 callersFunctionanyhow_error_to_compile_error
(error: anyhow::Error)
generation/src/lib.rs:140
↓ 6 callersMethodas_bool
(&self)
dd-manifest-tree/src/lib.rs:81
↓ 6 callersMethodcontains_key
(&self, key: &str)
dd-manifest-tree/src/lib.rs:341
↓ 6 callersMethodid
(&self)
generation/src/mir/mod.rs:673
↓ 6 callersFunctionmain
()
tests/src/main.rs:3
↓ 6 callersFunctionrecurse_objects
( objects: &'o [Object], f: &mut impl FnMut(&'o Object) -> anyhow::Result<()>, )
generation/src/mir/passes/mod.rs:61
↓ 6 callersFunctionrun_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 callersFunctiontransform_repeat
(value: &impl Value)
generation/src/manifest/mod.rs:656
↓ 6 callersMethodwrite_register
( &mut self, address: Self::AddressType, _size_bits: u32, data: &[u8], )
device-driver/tests/refs.rs:27
↓ 5 callersMethodas_array
(&self)
generation/src/mir/mod.rs:577
↓ 5 callersMethodmodify
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 callersFunctiontransform
(value: impl Value)
generation/src/manifest/mod.rs:9
↓ 5 callersMethodvalue
Read the `value` field of the register.
tests/cases/basic_command/basic_command.rs:120
↓ 5 callersMethodwrite_with_zero
Write to the register. The closure is given the write object initialized to all zero.
device-driver/src/register.rs:108
↓ 4 callersMethoddispatch
Dispatch the command to the device
device-driver/src/command.rs:81
↓ 4 callersMethodfield_sets_mut
Get an iterator over all the field sets in the object
generation/src/mir/mod.rs:207
↓ 4 callersFunctionfind_min_max_addresses
( objects: &[Object], filter: impl Fn(&Object) -> bool, )
generation/src/mir/passes/mod.rs:91
↓ 4 callersMethodname_mut
Get a mutable reference to the name of the specific object
generation/src/mir/mod.rs:174
↓ 4 callersMethodset_value
Write the `value` field of the register.
tests/cases/basic_command/basic_command.rs:131
↓ 4 callersFunctiontransform_mir
(mut mir: mir::Device, driver_name: &str)
generation/src/lib.rs:109
↓ 4 callersFunctiontransform_yaml
(source: &str, driver_name: &str)
generation/src/lib.rs:68
↓ 4 callersMethodtype_name
(&self)
generation/src/mir/mod.rs:368
↓ 3 callersMethodinterface
A reference to the interface used to communicate with the device
tests/cases/fieldset_access/fieldset_access.rs:24
↓ 3 callersMethodinterface
A reference to the interface used to communicate with the device
tests/cases/address_types/address_types.rs:24
↓ 3 callersFunctionrepeat_to_method_kind
(repeat: &Option<mir::Repeat>)
generation/src/mir/lir_transform.rs:576
↓ 3 callersFunctionrun_pass
Checks if enums are fully specified and determines the generation style
generation/src/mir/passes/enum_values_checked.rs:9
↓ 3 callersFunctiontransform_bit_order
(value: &impl Value)
generation/src/manifest/mod.rs:117
↓ 3 callersFunctiontransform_byte_order
(value: &impl Value)
generation/src/manifest/mod.rs:107
↓ 3 callersFunctiontransform_dsl
(input: proc_macro2::TokenStream, driver_name: &str)
generation/src/lib.rs:17
↓ 3 callersFunctiontransform_field
( field: &dsl_hir::Field, global_config: &mir::GlobalConfig, )
generation/src/dsl_hir/mir_transform.rs:503
↓ 3 callersFunctiontransform_field_set
Though it is correct... it's too many args
generation/src/mir/lir_transform.rs:383
↓ 3 callersFunctiontransform_fields
(value: &impl Value)
generation/src/manifest/mod.rs:681
↓ 3 callersFunctiontransform_integer_type
(value: &impl Value)
generation/src/manifest/mod.rs:127
↓ 3 callersFunctionvalidate_len
(field_set: &[Field], size_bits: u32, object_name: &str)
generation/src/mir/passes/bit_ranges_validated.rs:37
↓ 3 callersFunctionvalidate_overlap
(field_set: &[Field], object_name: &str)
generation/src/mir/passes/bit_ranges_validated.rs:55
↓ 3 callersMethodvalue_ro
Read the `value_ro` field of the register.
tests/cases/fieldset_access/fieldset_access.rs:172
↓ 3 callersMethodvalue_rw
Read the `value_rw` field of the register.
tests/cases/fieldset_access/fieldset_access.rs:183
↓ 2 callersFunction_private_transform_dsl_mir
( input: proc_macro2::TokenStream, )
generation/src/lib.rs:28
↓ 2 callersFunction_private_transform_json_mir
(source: &str)
generation/src/lib.rs:56
↓ 2 callersFunction_private_transform_toml_mir
(source: &str)
generation/src/lib.rs:102
↓ 2 callersFunction_private_transform_yaml_mir
(source: &str)
generation/src/lib.rs:79
↓ 2 callersMethodas_block_mut
(&mut self)
generation/src/mir/mod.rs:228
↓ 2 callersMethodas_register
(&self)
generation/src/mir/mod.rs:244
↓ 2 callersMethodas_register_mut
(&mut self)
generation/src/mir/mod.rs:236
↓ 2 callersMethodbar
(&mut self)
tests/cases/address_types/address_types.rs:97
↓ 2 callersFunctioncollect_into_blocks
( block: BorrowedBlock, is_root: bool, global_config: &mir::GlobalConfig, device_objects: &[mi
generation/src/mir/lir_transform.rs:63
↓ 2 callersMethodcombine
(&self, other: &Self)
generation/src/mir/mod.rs:599
↓ 2 callersFunctionconvert_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 callersMethodfield_sets
Get an iterator over all the field sets in the object
generation/src/mir/mod.rs:218
↓ 2 callersMethodfoo
( &mut self, )
tests/cases/basic_register/basic_register.rs:79
↓ 2 callersMethodfoo
\\\\\\/\/\/\////\/\/;{}'"`'
tests/cases/description_string_escapes/description_string_escapes.rs:80
↓ 2 callersMethodfoo_0
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:157
↓ 2 callersMethodfoo_1
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:181
↓ 2 callersMethodfoo_2
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:205
↓ 2 callersMethodfoo_3
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:229
↓ 2 callersMethodfoo_4
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:253
↓ 2 callersMethodfoo_5
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:277
↓ 2 callersMethodfoo_6
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:301
↓ 2 callersMethodfoo_7
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:325
↓ 2 callersMethodfoo_8
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:349
↓ 2 callersMethodfoo_9
Valid index range: 0..100
tests/cases/compile_time_explosion/compile_time_explosion.rs:373
↓ 2 callersMethodfoo_ro
( &mut self, )
tests/cases/fieldset_access/fieldset_access.rs:83
↓ 2 callersMethodfoo_rw
( &mut self, )
tests/cases/fieldset_access/fieldset_access.rs:101
↓ 2 callersMethodget_block_object_list
(&self)
generation/src/mir/mod.rs:166
↓ 2 callersFunctionget_target_byte_order
(reg: &Register, device: &Device)
generation/src/mir/passes/reset_values_converted.rs:112
↓ 2 callersMethodinner
(&self)
generation/src/mir/mod.rs:617
↓ 2 callersMethodnot
(mut self)
tests/cases/address_types/address_types.rs:210
↓ 2 callersMethodparse
(input: syn::parse::ParseStream)
macros/src/lib.rs:147
↓ 2 callersMethodparse
(input: ParseStream)
generation/src/dsl_hir/mod.rs:21
↓ 2 callersFunctionpivot_msb0
(start: usize, end: usize, i: usize)
device-driver/src/ops.rs:198
↓ 2 callersMethodread_register
( &mut self, address: Self::AddressType, _size_bits: u32, data: &mut [u8],
device-driver/tests/refs.rs:38
↓ 2 callersFunctionrecurse_objects_with_depth
( objects: &'o [Object], f: &mut impl FnMut(&'o Object, usize) -> anyhow::Result<()>, )
generation/src/mir/passes/mod.rs:68
↓ 2 callersFunctionrecurse_objects_with_depth_mut
( objects: &mut [Object], f: &mut impl FnMut(&mut Object, usize) -> anyhow::Result<()>, )
generation/src/mir/passes/mod.rs:38
↓ 2 callersFunctionrun_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 callersFunctionrun_passes
(device: &mut Device)
generation/src/lir/passes/mod.rs:5
↓ 2 callersFunctionsearch_object
(name: &str, objects: &'d [Object])
generation/src/mir/passes/mod.rs:144
↓ 2 callersMethodsign_extend
(self, sign_bit_index: usize)
device-driver/src/ops.rs:338
next →1–100 of 461, ranked by callers