C89 Project Template
Loading...
Searching...
No Matches
template.h
Go to the documentation of this file.
1/**
2 * @file template.h
3 * @brief Template (Hardware-Agnostic)
4 *
5 * This file contains the software implementation of the #TEMPLATE logic.
6 * The design is hardware-agnostic, requiring an external adaptation layer
7 * for hardware interaction.
8 *
9 * ```LICENSE
10 * Copyright (c) 2026 furdog <https://github.com/furdog>
11 *
12 * SPDX-License-Identifier: 0BSD
13 * ```
14 */
15
16#ifndef TEMPLATE_HEADER_GUARD
17#define TEMPLATE_HEADER_GUARD
18
19#include <assert.h>
20#include <stdbool.h>
21#include <stdint.h>
22
23/** Template main instance */
25 uint8_t test; /**< Test purposes */
26};
27
28/** Template init function */
30{
31 assert(self);
32
33 self->test = 0U;
34}
35
36/** Template 'test' setter */
38 uint8_t val)
39{
40 assert(self);
41
42 self->test = val;
43}
44
45/** Template Main Loop */
47 /*uint32_t delta_time_ms*/)
48{
49 assert(self);
50
51 return self->test;
52}
53
54#endif /* TEMPLATE_HEADER_GUARD */
Definition template.h:24
uint8_t test
Definition template.h:25
static void template_instance_set_test(struct template_instance *self, uint8_t val)
Definition template.h:37
static uint8_t template_instance_update(struct template_instance *self)
Definition template.h:46
static void template_instance_init(struct template_instance *self)
Definition template.h:29