Skip to content

Commit 489c268

Browse files
committed
Rename associated types for linter
1 parent c9648cb commit 489c268

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/opamp.rs

+16-16
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ where
152152
/// with external filtering.
153153
fn pga_external_filter<
154154
B1: Borrow<NonInverting>,
155-
B2: Borrow<<Opamp as ConfigurePgaReg<Opamp, NonInverting>>::vinm0>,
155+
B2: Borrow<<Opamp as ConfigurePgaReg<Opamp, NonInverting>>::Vinm0>,
156156
>(
157157
self,
158158
non_inverting: B1,
@@ -165,7 +165,7 @@ where
165165
/// external filtering.
166166
fn pga_external_bias<
167167
B1: Borrow<NonInverting>,
168-
B2: Borrow<<Opamp as ConfigurePgaReg<Opamp, NonInverting>>::vinm0>,
168+
B2: Borrow<<Opamp as ConfigurePgaReg<Opamp, NonInverting>>::Vinm0>,
169169
>(
170170
self,
171171
non_inverting: B1,
@@ -178,8 +178,8 @@ where
178178
/// external filtering.
179179
fn pga_external_bias_and_filter<
180180
B1: Borrow<NonInverting>,
181-
B2: Borrow<<Opamp as ConfigurePgaReg<Opamp, NonInverting>>::vinm0>,
182-
B3: Borrow<<Opamp as ConfigurePgaReg<Opamp, NonInverting>>::vinm1>,
181+
B2: Borrow<<Opamp as ConfigurePgaReg<Opamp, NonInverting>>::Vinm0>,
182+
B3: Borrow<<Opamp as ConfigurePgaReg<Opamp, NonInverting>>::Vinm1>,
183183
>(
184184
self,
185185
non_inverting: B1,
@@ -197,9 +197,9 @@ where
197197
Opamp: LookupPgaGain,
198198
{
199199
/// Type of the associated vinm0 input.
200-
type vinm0;
200+
type Vinm0;
201201
/// Type of the associated vinm1 input.
202-
type vinm1;
202+
type Vinm1;
203203

204204
/// Write the opamp CSR register configuring the opamp PGA.
205205
///
@@ -720,8 +720,8 @@ macro_rules! opamps {
720720
paste::paste!{
721721
impl ConfigurePgaReg<$opamp, $non_inverting> for $opamp
722722
{
723-
type vinm0 = $vinm0;
724-
type vinm1 = $vinm1;
723+
type Vinm0 = $vinm0;
724+
type Vinm1 = $vinm1;
725725

726726
/// Configures the opamp for programmable gain operation.
727727
unsafe fn write_pga_reg(gain: Gain, mode: PgaMode, output_enable: bool) {
@@ -762,7 +762,7 @@ macro_rules! opamps {
762762
#[allow(private_bounds)]
763763
fn pga_external_filter<
764764
B1: Borrow<$non_inverting>,
765-
B2: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::vinm0>,
765+
B2: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::Vinm0>,
766766
>(
767767
self,
768768
_non_inverting: B1,
@@ -776,7 +776,7 @@ macro_rules! opamps {
776776
#[allow(private_bounds)]
777777
fn pga_external_bias<
778778
B1: Borrow<$non_inverting>,
779-
B2: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::vinm0>,
779+
B2: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::Vinm0>,
780780
>(
781781
self,
782782
_non_inverting: B1,
@@ -790,8 +790,8 @@ macro_rules! opamps {
790790
#[allow(private_bounds)]
791791
fn pga_external_bias_and_filter<
792792
B1: Borrow<$non_inverting>,
793-
B2: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::vinm0>,
794-
B3: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::vinm1>,
793+
B2: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::Vinm0>,
794+
B3: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::Vinm1>,
795795
>(
796796
self,
797797
_non_inverting: B1,
@@ -819,7 +819,7 @@ macro_rules! opamps {
819819
#[allow(private_bounds)]
820820
fn pga_external_filter<
821821
B1: Borrow<$non_inverting>,
822-
B2: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::vinm0>,
822+
B2: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::Vinm0>,
823823
>(
824824
self,
825825
_non_inverting: B1,
@@ -833,7 +833,7 @@ macro_rules! opamps {
833833
#[allow(private_bounds)]
834834
fn pga_external_bias<
835835
B1: Borrow<$non_inverting>,
836-
B2: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::vinm0>,
836+
B2: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::Vinm0>,
837837
>(
838838
self,
839839
_non_inverting: B1,
@@ -847,8 +847,8 @@ macro_rules! opamps {
847847
#[allow(private_bounds)]
848848
fn pga_external_bias_and_filter<
849849
B1: Borrow<$non_inverting>,
850-
B2: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::vinm0>,
851-
B3: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::vinm1>,
850+
B2: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::Vinm0>,
851+
B3: Borrow<<$opamp as ConfigurePgaReg<$opamp, $non_inverting>>::Vinm1>,
852852
>(
853853
self,
854854
_non_inverting: B1,

0 commit comments

Comments
 (0)