Updated AD5940 lib, now wait for custom PCB.

This commit is contained in:
2025-08-04 13:06:53 +02:00
parent d04f457c9f
commit 0256b5d3f4
4 changed files with 308 additions and 118 deletions

View File

@@ -53,6 +53,17 @@ bitflags! {
}
}
bitflags! {
// Analog Generation Interrupt Register
// Address 0x0000209C, Reset: 0x00000010, Name: AFEGENINTSTA
pub struct AFEGENINTSTA: u32 {
const CUSTOMINT3 = 1 << 3; // General-Purpose Custom Interrupt 3
const CUSTOMINT2 = 1 << 2; // General-Purpose Custom Interrupt 2
const CUSTOMINT1 = 1 << 1; // General-Purpose Custom Interrupt 1
const CUSTOMINT0 = 1 << 0; // General-Purpose Custom Interrupt 0
}
}
bitflags! {
// ADC Configuration Register,
// Address 0x000021A8, Reset: 0x00000000, Name: ADCCON