cs47l63 0.1.0

A Rust driver for the CS47L63 DSP
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![allow(dead_code)]

use crate::spec::CS47L63_SFT_RESET;

pub struct SoftReset {
    pub reset: u8,
}

impl SoftReset {
    pub const fn new() -> Self {
        SoftReset { reset: 0x5A }
    }

    pub const fn serialize(&self) -> [u32; 2] {
        [CS47L63_SFT_RESET, (self.reset as u32) << 24]
    }
}