pflex_module_rs/enums.rs
1/// Parameter IDs that are required when getting or setting parameters on the robot
2#[derive(Debug, Clone, PartialEq, Copy)]
3pub enum ParamIDs {
4 HomingStatus = 2800,
5 LastError = 320,
6}
7
8impl ParamIDs {
9 /// Get the value of the parameter ID as an 32-bit integer type
10 pub fn value(&self) -> i32 {
11 *self as i32
12 }
13
14 /// Get the value of the parameter ID as a String type
15 pub fn to_string(&self) -> String {
16 self.value().to_string()
17 }
18}