mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-27 20:28:25 +08:00
satman mgmt: get_slice_sat -> get_slice_satellite
This commit is contained in:
parent
5c21649d10
commit
a2d341f4d6
@ -31,7 +31,7 @@ impl Manager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_config_value_slice(&mut self, data_slice: &mut [u8; SAT_PAYLOAD_MAX_SIZE]) -> SliceMeta {
|
pub fn get_config_value_slice(&mut self, data_slice: &mut [u8; SAT_PAYLOAD_MAX_SIZE]) -> SliceMeta {
|
||||||
self.last_value.get_slice_sat(data_slice)
|
self.last_value.get_slice_satellite(data_slice)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn add_config_data(&mut self, data: &[u8], data_len: usize) {
|
pub fn add_config_data(&mut self, data: &[u8], data_len: usize) {
|
||||||
|
@ -4,6 +4,7 @@ use board_artiq::{drtioaux, drtio_routing};
|
|||||||
use board_misoc::csr;
|
use board_misoc::csr;
|
||||||
use core::cmp::min;
|
use core::cmp::min;
|
||||||
use proto_artiq::drtioaux_proto::PayloadStatus;
|
use proto_artiq::drtioaux_proto::PayloadStatus;
|
||||||
|
use SAT_PAYLOAD_MAX_SIZE;
|
||||||
use MASTER_PAYLOAD_MAX_SIZE;
|
use MASTER_PAYLOAD_MAX_SIZE;
|
||||||
|
|
||||||
/* represents data that has to be sent with the aux protocol */
|
/* represents data that has to be sent with the aux protocol */
|
||||||
@ -56,6 +57,7 @@ impl Sliceable {
|
|||||||
self.data.extend(data);
|
self.data.extend(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_slice_fn!(get_slice_satellite, SAT_PAYLOAD_MAX_SIZE);
|
||||||
get_slice_fn!(get_slice_master, MASTER_PAYLOAD_MAX_SIZE);
|
get_slice_fn!(get_slice_master, MASTER_PAYLOAD_MAX_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user