2022-08-18 01:32:02 +02:00
|
|
|
use std::net::Ipv4Addr;
|
|
|
|
|
2022-11-27 22:30:38 +01:00
|
|
|
use satrs_mib::resultcode;
|
|
|
|
use satrs_mib::res_code::{ResultU16, ResultU16Info};
|
2022-11-27 22:05:42 +01:00
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
pub enum GroupId {
|
|
|
|
Tmtc = 0,
|
|
|
|
}
|
|
|
|
|
2022-08-18 01:32:02 +02:00
|
|
|
pub const OBSW_SERVER_ADDR: Ipv4Addr = Ipv4Addr::new(127, 0, 0, 1);
|
|
|
|
pub const SERVER_PORT: u16 = 7301;
|
2022-11-27 22:05:42 +01:00
|
|
|
|
|
|
|
#[resultcode]
|
|
|
|
pub const INVALID_PUS_SERVICE: ResultU16 = ResultU16::const_new(GroupId::Tmtc as u8, 0);
|
|
|
|
#[resultcode]
|
|
|
|
pub const INVALID_PUS_SUBSERVICE: ResultU16 = ResultU16::const_new(GroupId::Tmtc as u8, 1);
|
|
|
|
|
|
|
|
#[resultcode(info = "Not enough data inside the TC application data field")]
|
|
|
|
pub const NOT_ENOUGH_APP_DATA: ResultU16 = ResultU16::const_new(GroupId::Tmtc as u8, 2);
|
|
|
|
|
|
|
|
pub const TMTC_RESULTS: &[ResultU16Info] = &[
|
|
|
|
INVALID_PUS_SERVICE_EXT,
|
|
|
|
INVALID_PUS_SUBSERVICE_EXT,
|
|
|
|
NOT_ENOUGH_APP_DATA_EXT,
|
|
|
|
];
|