mirror of
https://github.com/hubaldv/bioz-firmware-rs.git
synced 2026-04-24 08:42:03 +00:00
Created new impedance file for impedance_setup.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use bitflags::bitflags;
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub trait Resettable {
|
||||
fn reset() -> Self;
|
||||
// fn msk() -> u32;
|
||||
@@ -106,6 +107,7 @@ impl Resettable for DMUXCON {
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[repr(u32)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum MUXSELN
|
||||
{
|
||||
HsTiaNeg = 0b00001,
|
||||
@@ -115,6 +117,7 @@ pub enum MUXSELN
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[repr(u32)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum MUXSELP {
|
||||
HsTiaPos = 0b00001,
|
||||
AIN1 = 0b00101,
|
||||
@@ -122,6 +125,7 @@ pub enum MUXSELP {
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[repr(u32)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum DFTINSEL {
|
||||
Sinc2 = 0b00,
|
||||
GainOffset = 0b01,
|
||||
@@ -136,6 +140,7 @@ impl Resettable for DFTINSEL {
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[repr(u32)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum DFTNUM {
|
||||
Num4 = 0b0000,
|
||||
Num8 = 0b0001,
|
||||
@@ -159,6 +164,7 @@ impl Resettable for DFTNUM {
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum CTIACON {
|
||||
C1 = 0,
|
||||
C2 = 1 << 0,
|
||||
@@ -175,6 +181,7 @@ impl Resettable for CTIACON {
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum RTIACON {
|
||||
R200 = 0b0000,
|
||||
R1k = 0b0001,
|
||||
@@ -194,6 +201,7 @@ impl Resettable for RTIACON {
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum SINC3OSR {
|
||||
R5 = 0b00,
|
||||
R4 = 0b01,
|
||||
@@ -207,6 +215,7 @@ impl Resettable for SINC3OSR {
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum SINC2OSR {
|
||||
R22 = 0b0000,
|
||||
R44 = 0b0001,
|
||||
@@ -229,8 +238,9 @@ impl Resettable for SINC2OSR {
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum ADCSAMPLERATE {
|
||||
R800Hz = 1,
|
||||
R800kHz = 1,
|
||||
R1_6MHz = 0,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user