Tactility/tactility/src/tactility.h
Ken Van Hoeylandt d171b9a231
Display brightness support (#26)
* cleanup

* brightness control and app

* cleanup

* persistant storage of display settings

* fix for missing include

* header cleanup

* fix pc build

* add docs

* move display app to tactility project
2024-01-31 20:39:12 +01:00

35 lines
817 B
C

#pragma once
#include "app_manifest.h"
#include "hardware_config.h"
#include "service_manifest.h"
#include "tactility_config.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
const HardwareConfig* hardware;
// List of user applications
const AppManifest* const apps[TT_CONFIG_APPS_LIMIT];
const ServiceManifest* const services[TT_CONFIG_SERVICES_LIMIT];
const char* auto_start_app_id;
} Config;
/**
* Attempts to initialize Tactility and all configured hardware.
* @param config
*/
TT_UNUSED void tt_init(const Config* config);
/**
* While technically nullable, this instance is always set if tt_init() succeeds.
* @return the Configuration instance that was passed on to tt_init() if init is successful
*/
const Config* _Nullable tt_get_config();
#ifdef __cplusplus
}
#endif