xous-core/services/trng/src/api.rs

14 lines
306 B
Rust
Raw Normal View History

2021-04-01 09:20:36 +00:00
pub(crate) const SERVER_NAME_TRNG: &str = "_TRNG manager_";
2021-01-13 07:04:14 +00:00
#[allow(dead_code)]
2021-04-01 09:20:36 +00:00
#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive, Debug)]
pub(crate) enum Opcode {
2021-01-13 07:04:14 +00:00
/// Get one or two 32-bit words of TRNG data
2021-04-01 09:20:36 +00:00
GetTrng,
2021-04-29 09:24:31 +00:00
/// Suspend/resume callback
SuspendResume,
Quit,
2021-01-13 07:04:14 +00:00
}