SlimComponentManager Class
- class ska_mid_cbf_mcs.slim.slim_component_manager.SlimComponentManager(*args: Any, **kwargs: Any)[source]
Bases:
CbfComponentManager
Manages a Serial Lightweight Interconnect Mesh (SLIM).
- start_communicating() None [source]
Establish communication with the component, then start monitoring.
- property is_communicating: bool
Returns whether or not the SLIM can be communicated with.
- Returns:
whether the SLIM is communicating
- on() Tuple[ResultCode, str] [source]
On command. Currently just returns OK. The device does nothing until mesh configuration is provided via the Configure command.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)
- off() Tuple[ResultCode, str] [source]
Off command. Disconnects SLIM Links if mesh is configured, else returns OK.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)
- configure(config_str) Tuple[ResultCode, str] [source]
Configure command. Parses the mesh configuration.
- Parameters:
config_str – a string in YAML format describing the links to be created.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)
- get_configuration_string() str [source]
Returns the configurations string used to configure the SLIM.
- Returns:
the SLIM configuration string
- Return type:
- get_link_fqdns() List[str] [source]
Returns a list of SLIM Link FQDNs.
- Returns:
the SLIM links assosiated with the mesh.
- Return type:
List[str]
- get_link_names() List[str] [source]
Returns a list of SLIM Link names, formatted ‘tx_device_name->rx_device_name’.
- Returns:
the names of SLIM links assosiated with the mesh.
- Return type:
List[str]