|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Go to the source code of this file.
Namespaces | |
| namespace | daq |
Functions | |
| size_t | daq::create_board_heartbeat_packet (const BoardHeartbeatPacket &data, uint32_t timestamp_ms, uint8_t *buffer, size_t buffer_size) |
| Creates a complete Board Heartbeat packet in the provided buffer. | |
| size_t | daq::create_sensor_data_packet (const std::vector< SensorDataChunkCollection > &chunks, const uint8_t num_sensors, uint32_t timestamp_ms, uint8_t *buffer, size_t buffer_size) |
| Creates a complete Sensor Data packet in the provided buffer. | |
| size_t | daq::create_abort_done_packet (uint32_t timestamp_ms, uint8_t *buffer, size_t buffer_size) |
| Creates a simple Abort Done packet. | |
| size_t | daq::create_actuator_command_packet (const std::vector< ActuatorCommand > &commands, uint32_t timestamp_ms, uint8_t *buffer, size_t buffer_size) |
| Creates a complete Actuator Command packet in the provided buffer. | |
| size_t | daq::create_self_test_packet (uint8_t adc_good, const std::vector< SelfTestResult > &results, uint32_t timestamp_ms, uint8_t *buffer, size_t buffer_size) |
| Creates a complete Self Test packet in the provided buffer. | |
| size_t | daq::create_environmental_data_packet (float temperature_c, uint32_t pressure_pa, float humidity_rh, uint32_t timestamp_ms, uint8_t *buffer, size_t buffer_size) |
| Creates a complete Environmental Data packet in the provided buffer. | |
| size_t | daq::create_stacklight_command_packet (const StacklightCommandPacket &data, uint32_t timestamp_ms, uint8_t *buffer, size_t buffer_size) |
| Creates a complete Stacklight Command packet in the provided buffer. | |
| bool | daq::parse_board_heartbeat_packet (const uint8_t *buffer, size_t buffer_size, PacketHeader &header_out, BoardHeartbeatPacket &data_out) |
| Parses a Board Heartbeat packet from buffer. | |
| bool | daq::parse_server_heartbeat_packet (const uint8_t *buffer, size_t buffer_size, PacketHeader &header_out, ServerHeartbeatPacket &data_out) |
| Parses a Server Heartbeat packet from buffer. | |
| bool | daq::parse_environmental_data_packet (const uint8_t *buffer, size_t buffer_size, PacketHeader &header_out, EnvironmentalDataPacket &data_out) |
| Parses an Environmental Data packet from buffer. | |
| bool | daq::parse_stacklight_command_packet (const uint8_t *buffer, size_t buffer_size, PacketHeader &header_out, StacklightCommandPacket &data_out) |
| Parses a Stacklight Command packet from buffer. | |
| bool | daq::parse_sensor_data_packet (const uint8_t *buffer, size_t buffer_size, PacketHeader &header_out, std::vector< SensorDataChunkCollection > &chunks_out) |
| Parses a Sensor Data packet from buffer into chunk collections. | |
| bool | daq::parse_abort_done_packet (const uint8_t *buffer, size_t buffer_size, PacketHeader &header_out) |
| Parses an Abort Done packet from buffer. | |
| bool | daq::parse_actuator_command_packet (const uint8_t *buffer, size_t buffer_size, PacketHeader &header_out, std::vector< ActuatorCommand > &commands_out) |
| Parses an Actuator Command packet from buffer. | |
| bool | daq::parse_self_test_packet (const uint8_t *buffer, size_t buffer_size, PacketHeader &header_out, uint8_t &adc_good_out, std::vector< SelfTestResult > &results_out) |
| Parses a Self Test packet from buffer. | |
| size_t | daq::create_pwm_actuator_packet (const std::vector< PWMActuatorCommand > &commands, uint32_t timestamp_ms, uint8_t *buffer, size_t buffer_size) |
| Creates a complete PWM Actuator Command packet in the provided buffer. | |
| bool | daq::parse_pwm_actuator_packet (const uint8_t *buffer, size_t buffer_size, PacketHeader &header_out, std::vector< PWMActuatorCommand > &commands_out) |
| Parses a PWM Actuator Command packet from buffer. | |
| size_t | daq::create_sensor_config_packet (const std::vector< uint8_t > &sensor_ids, uint8_t reference_voltage, bool necessary_for_abort, uint32_t controller_ip, uint8_t enable_serial_printing, uint32_t timestamp_ms, uint8_t *buffer, size_t buffer_size) |
| Creates a complete Sensor Config packet in the provided buffer. | |
| bool | daq::parse_sensor_config_packet (const uint8_t *buffer, size_t buffer_size, PacketHeader &header_out, std::vector< uint8_t > &sensor_ids_out, uint8_t &reference_voltage_out, bool &necessary_for_abort_out, uint32_t &controller_ip_out, uint8_t &enable_serial_printing_out) |
| Parses a Sensor Config packet from buffer. | |
| size_t | daq::create_actuator_config_packet (uint8_t is_abort_controller, const std::vector< AbortActuatorLocation > &abort_actuators, const std::vector< AbortPTLocation > &abort_pts, uint8_t enable_serial_printing, uint32_t timestamp_ms, uint8_t *buffer, size_t buffer_size) |
| Creates a complete Actuator Config packet in the provided buffer. | |
| bool | daq::parse_actuator_config_packet (const uint8_t *buffer, size_t buffer_size, PacketHeader &header_out, uint8_t &is_abort_controller_out, std::vector< AbortActuatorLocation > &abort_actuators_out, std::vector< AbortPTLocation > &abort_pts_out, uint8_t &enable_serial_printing_out) |
| Parses an Actuator Config packet from buffer. | |
| size_t | daq::create_log_packet (uint8_t flags, const uint8_t *text, uint16_t text_len, uint32_t timestamp_ms, uint8_t *buffer, size_t buffer_size) |
| Creates a LOGS packet (type 15): buffered board log text for the server. | |
| bool | daq::parse_log_packet (const uint8_t *buffer, size_t buffer_size, PacketHeader &header_out, uint8_t &flags_out, const uint8_t *&text_out, uint16_t &text_len_out) |
| Parses a LOGS packet (type 15) from buffer. | |