Crate sensor_core

source

Modules§

Structs§

  • Represents a conditional image element on a display.
  • Represents the display config. It holds the resolution and the elements to be rendered.
  • Represents a single element to be rendered on a display.
  • Represents a graph element on a display.
  • Represents a static image element on a display.
  • Represents the preparation data for the render process. It holds all static assets to be rendered. This is done once before the loop starts. Each asset will be stored on the display locally, and load during the render process by its asset id / element id
  • Represents the preparation data for the render process. It holds all static assets to be rendered. This is done once before the loop starts. Each asset will be stored on the display locally, and load during the render process by its asset id / element id
  • Represents the preparation data for the render process. It holds all static assets to be rendered. This is done once before the loop starts. Each asset will be stored on the display locally, and load during the render process by its asset id / element id
  • Represents the data to be rendered on a display. It holds the display config and the sensor values.
  • Provides a single SensorValue
  • Represents a text element on a display.
  • Indicates the current type of message to be sent to the display. Either a message to prepares static assets, by sending them to the display, and then be stored on the fs. Or the actual render loop, where the prev. stored asses will be used to render the image. The type is used to deserialize the data to the correct struct. The data is a vector of bytes, which will be deserialized to the correct struct, depending on the type.

Enums§

  • Represents the type of an element on a display.
  • Represents the type of a graph element on a display.
  • Represents the type of a sensor value. This is used to determine how to render the value. For example a text value will be rendered as text, while a number value can be rendered as a graph.
  • Represents the modifier of a sensor value. This is used to modify the value before rendering. For example to output the average or max value of a sensor.
  • Represents the text alignment of a text element.
  • Represents the type of the message to be sent to the display. Either a message to prepares static assets, by sending them to the display, and then be stored on the fs. Or the actual render loop, where the prev. stored asses will be used to render the image. The type is used to deserialize the data to the correct struct.

Functions§