Update TOTP

This commit is contained in:
Willy-JL
2023-04-09 19:52:56 +01:00
parent 80b1e73989
commit 769d44d793
32 changed files with 121 additions and 128 deletions

View File

@@ -0,0 +1,24 @@
#pragma once
/* GENERATED BY https://github.com/pavius/the-dot-factory */
#include <stdint.h>
// This structure describes a single character's display information
typedef struct {
const uint8_t width; // width, in bits (or pixels), of the character
const uint16_t
offset; // offset of the character's bitmap, in bytes, into the the FONT_INFO's data array
} FONT_CHAR_INFO;
// Describes a single font
typedef struct {
const uint8_t height; // height, in pages (8 pixels), of the font's characters
const uint8_t startChar; // the first character in the font (e.g. in charInfo and data)
const uint8_t endChar; // the last character in the font
const uint8_t spacePixels; // number of pixels that a space character takes up
const FONT_CHAR_INFO* charInfo; // pointer to array of char information
const uint8_t* data; // pointer to generated array of character visual representation
} FONT_INFO;