mirror of
https://gitlab.cern.ch/wotsubo/endcap-sl-software-ri-generator.git
synced 2025-04-20 19:56:03 +09:00
run formatter (diff are maybe due to edition)
This commit is contained in:
parent
b9f6dc6c23
commit
e6e7ada193
3 changed files with 8 additions and 4 deletions
|
@ -9,8 +9,8 @@ use quote::quote;
|
||||||
use crate::types::{DataType, Field, MultipleParams, Register, Value};
|
use crate::types::{DataType, Field, MultipleParams, Register, Value};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
util::{self, RustUxTypes},
|
|
||||||
CodeGenError,
|
CodeGenError,
|
||||||
|
util::{self, RustUxTypes},
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Generate underlying `T` and its implementation for `RegisterSpec`.
|
/// Generate underlying `T` and its implementation for `RegisterSpec`.
|
||||||
|
|
|
@ -5,7 +5,7 @@ use thiserror::Error;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
converter, generator,
|
converter, generator,
|
||||||
io::{get_xml_gitinfo, XmlGitInfoError},
|
io::{XmlGitInfoError, get_xml_gitinfo},
|
||||||
types, validator,
|
types, validator,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -38,13 +38,17 @@ pub enum ValidationError {
|
||||||
},
|
},
|
||||||
#[error("address 0x{address:08x} is out of range: \"{name}\"")]
|
#[error("address 0x{address:08x} is out of range: \"{name}\"")]
|
||||||
AddressOutofRange { address: u32, name: String },
|
AddressOutofRange { address: u32, name: String },
|
||||||
#[error("field masks are duplicated at 0x{address:08x}: \"{reg_name}\", bits: 0x{duplicated_mask:08x}")]
|
#[error(
|
||||||
|
"field masks are duplicated at 0x{address:08x}: \"{reg_name}\", bits: 0x{duplicated_mask:08x}"
|
||||||
|
)]
|
||||||
FieldMaskDuplicated {
|
FieldMaskDuplicated {
|
||||||
address: u32,
|
address: u32,
|
||||||
reg_name: String,
|
reg_name: String,
|
||||||
duplicated_mask: u32,
|
duplicated_mask: u32,
|
||||||
},
|
},
|
||||||
#[error("register \"{name}\" at 0x{address:08x} has mask 0x{reg_mask:08x} that doesn't match sum of field masks: 0x{fields_mask:08x}")]
|
#[error(
|
||||||
|
"register \"{name}\" at 0x{address:08x} has mask 0x{reg_mask:08x} that doesn't match sum of field masks: 0x{fields_mask:08x}"
|
||||||
|
)]
|
||||||
RegisterAndFieldMaskMismatch {
|
RegisterAndFieldMaskMismatch {
|
||||||
address: u32,
|
address: u32,
|
||||||
name: String,
|
name: String,
|
||||||
|
|
Loading…
Add table
Reference in a new issue