PDU config tweak #17

Merged
muellerr merged 10 commits from pdu-conf-tweaK into main 2023-08-10 21:40:43 +02:00
3 changed files with 9 additions and 2 deletions
Showing only changes of commit 105c598c53 - Show all commits

View File

@ -134,6 +134,12 @@ pub enum ChecksumType {
NullChecksum = 15,
}
impl Default for ChecksumType {
fn default() -> Self {
Self::NullChecksum
}
}
pub const NULL_CHECKSUM_U32: [u8; 4] = [0; 4];
#[derive(Debug, Copy, Clone, PartialEq, Eq)]

View File

@ -11,7 +11,7 @@ use alloc::vec::Vec;
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[derive(Default, Debug, Copy, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct MetadataGenericParams {
pub closure_requested: bool,

View File

@ -232,7 +232,8 @@ impl CommonPduConfig {
LargeFileFlag::Normal,
CrcFlag::NoCrc,
Direction::TowardsReceiver,
).unwrap()
)
.unwrap()
}
pub fn source_id(&self) -> UnsignedByteField {