Loading files
7976a3dfdThis file is pinned to the selected release. Download the original to open it in your design tool.
/// @file LibWrapper.h
/// @brief Wrapper that allows building code from BusinessLogic and Device folders as a PC library used for simulation in Python.
#ifndef LibWrapper_h
#define LibWrapper_h
#include <stdint.h>
#include "MyApplication.hpp"
#ifdef __cplusplus
extern "C"
{
#endif
/**
* @brief Initializes the library for use in simulations.
*
* This function performs all necessary initializations for the library,
* setting up internal components required for the application to run.
*/
void LibWrapper_Init();
/**
* @brief Main tick function to advance application state.
*
* This function is called periodically to update the internal state of the
* application logic. It simulates the passage of time and processes events.
*/
void LibWrapper_Tick();
/**
* @brief Gets the width of the display.
*
* @return The width of the display in pixels.
*/
uint8_t LibWrapper_GetDisplayWidth();
/**
* @brief Gets the height of the display.
*
* @return The height of the display in pixels.
*/
uint8_t LibWrapper_GetDisplayHeight();
/**
* @brief Gets the value of a specific pixel on the display.
*
* This function returns the value of a pixel located at the given coordinates.
* The value represents the color or intensity of the pixel.
*
* @param x The x-coordinate of the pixel.
* @param y The y-coordinate of the pixel.
* @return The value of the pixel at the specified location.
*/
uint16_t LibWrapper_GetPixelValue(uint8_t x, uint8_t y);
#ifdef __cplusplus
}
#endif
#endif