Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1015 Bytes

File metadata and controls

36 lines (28 loc) · 1015 Bytes

LIBEAGLETRT

This library provides a set of general purpose utility functions commonly used across embedded software projects.

Usage

To use the library, simply include the main header file:

#include "eagletrt-api.h"

Note

No other dependencies are required in order to work with this library.

Note

This library is intentionally minimal.
Its purpose is to provide only the most common and essential utilities shared across all embedded projects.
Adding project specific or rarely used functions would defeat the purpose of keeping this library lightweight and universally applicable.

Example

A complete usage can be found in this example.

Example snippet:

#include "eagletrt-api.h"
#include <stdio.h>

int main(void) {
    printf("max(5, -1) = %d\n", EAGLETRT_API_MAX(5, -1));
    // will print 5

    printf("normalize(25.0, 0.0–100.0) = %.2f\n", 
        eagletrt_api_normalize(25.0f, 0.0f, 100.0f));
    // will print 0.25

    return 0;
}