C89 Project Template
Loading...
Searching...
No Matches
template.h File Reference

Template (Hardware-Agnostic) More...

#include <assert.h>
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  template_instance

Functions

static void template_instance_init (struct template_instance *self)
static void template_instance_set_test (struct template_instance *self, uint8_t val)
static uint8_t template_instance_update (struct template_instance *self)

Detailed Description

Template (Hardware-Agnostic)

This file contains the software implementation of the #TEMPLATE logic. The design is hardware-agnostic, requiring an external adaptation layer for hardware interaction.

Copyright (c) 2026 furdog <https://github.com/furdog>
SPDX-License-Identifier: 0BSD

Function Documentation

◆ template_instance_init()

void template_instance_init ( struct template_instance * self)
static

Template init function

◆ template_instance_set_test()

void template_instance_set_test ( struct template_instance * self,
uint8_t val )
static

Template 'test' setter

◆ template_instance_update()

uint8_t template_instance_update ( struct template_instance * self)
static

Template Main Loop