feat: added PicoW_Sensor code template

Credits to @ext-erich.styger that provided the template
This commit is contained in:
SylvanArnold
2025-04-22 11:30:45 +02:00
committed by Sylvan Arnold
parent b2e9eab44e
commit 6cd510e749
985 changed files with 606823 additions and 0 deletions

View File

@@ -0,0 +1,218 @@
/* ###################################################################
** This component module is generated by Processor Expert. Do not modify it.
** Filename : McuFontHelv08Bold.h
** Project : FRDM-K64F_Generator
** Processor : MK64FN1M0VLL12
** Component : GFont
** Version : Component 01.131, Driver 01.00, CPU db: 3.00.000
** Compiler : GNU C Compiler
** Date/Time : 2020-08-13, 18:42, # CodeGen: 675
** Abstract :
** Driver for graphical fonts
** Settings :
** Component name : McuFontHelv08Bold
** SDK : McuLib
** Overwrite Bounding Box Height : Disabled
** Name : Helv
** Size : 8
** Style : bold
** Contents :
** GetFontChar - PGFONT_CharInfo McuFontHelv08Bold_GetFontChar(uint8_t ch);
** GetBoxHeight - uint8_t McuFontHelv08Bold_GetBoxHeight(void);
** GetFont - PGFONT_Callbacks McuFontHelv08Bold_GetFont(void);
** GetUnderlineBoxHeight - uint8_t McuFontHelv08Bold_GetUnderlineBoxHeight(void);
** GetLineSpaceHeight - uint8_t McuFontHelv08Bold_GetLineSpaceHeight(void);
** Deinit - void McuFontHelv08Bold_Deinit(void);
** Init - void McuFontHelv08Bold_Init(void);
**
** * Copyright (c) 2011-2020, Erich Styger
** * Web: https://mcuoneclipse.com
** * SourceForge: https://sourceforge.net/projects/mcuoneclipse
** * Git: https://github.com/ErichStyger/McuOnEclipse_PEx
** * All rights reserved.
** *
** * Redistribution and use in source and binary forms, with or without modification,
** * are permitted provided that the following conditions are met:
** *
** * - Redistributions of source code must retain the above copyright notice, this list
** * of conditions and the following disclaimer.
** *
** * - Redistributions in binary form must reproduce the above copyright notice, this
** * list of conditions and the following disclaimer in the documentation and/or
** * other materials provided with the distribution.
** *
** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
** * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
** * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
** * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
** * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
** * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
** * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
** * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
** ###################################################################*/
/*!
** @file McuFontHelv08Bold.h
** @version 01.00
** @brief
** Driver for graphical fonts
*/
/*!
** @addtogroup McuFontHelv08Bold_module McuFontHelv08Bold module documentation
** @{
*/
#ifndef __McuFontHelv08Bold_H
#define __McuFontHelv08Bold_H
/* MODULE McuFontHelv08Bold. */
#include "McuLib.h" /* SDK and API used */
#include "McuFontHelv08Boldconfig.h" /* configuration */
/* Include inherited components */
#include "McuLib.h"
#ifndef __BWUserType_PConstByte
#define __BWUserType_PConstByte
typedef const uint8_t *PConstByte; /* Pointer to a constant byte. */
#endif
#ifndef __BWUserType_GFONT_CharInfo
#define __BWUserType_GFONT_CharInfo
typedef struct { /* A descriptor describing the font. */
int8_t dwidth; /* position of next char. relative to the current */
uint8_t width; /* width of character in pixels */
uint8_t height; /* height of character in pixels */
int8_t offsetX; /* horizontal offset to left edge of bounding box */
int8_t offsetY; /* vertical offset to bottom edge of bounding box */
PConstByte CharBMP; /* pointer to character bitmap defined above */
} GFONT_CharInfo;
#endif
#ifndef __BWUserType_PGFONT_CharInfo
#define __BWUserType_PGFONT_CharInfo
typedef GFONT_CharInfo* PGFONT_CharInfo ; /* A pointer to GFONT_CharInfo */
#endif
#ifndef __BWUserType_CallbackGetFontChar
#define __BWUserType_CallbackGetFontChar
typedef PGFONT_CharInfo (*CallbackGetFontChar)(uint8_t ch); /* Callback used to get the font information for a single character. */
#endif
#ifndef __BWUserType_GFONT_Callbacks
#define __BWUserType_GFONT_Callbacks
typedef struct { /* Structure with font relevant callbacks. */
CallbackGetFontChar GetFontChar; /* Callback for retrieving a font character. */
uint8_t boundingBoxHeight; /* Height of the bounding box. This includes the height of the underline box height. */
uint8_t underlineBoxHeight; /* Height of the underline box height. */
uint8_t lineSpaceBoxHeight; /* Height of the space between lines */
} GFONT_Callbacks;
#endif
#ifndef __BWUserType_PGFONT_Callbacks
#define __BWUserType_PGFONT_Callbacks
typedef GFONT_Callbacks* PGFONT_Callbacks ; /* Pointer to struct for font callbacks. */
#endif
PGFONT_CharInfo McuFontHelv08Bold_GetFontChar(uint8_t ch);
/*
** ===================================================================
** Method : GetFontChar (component GFont)
**
** Description :
** Returns for a given character the corresponding font bitmap.
** Parameters :
** NAME - DESCRIPTION
** ch - The character for that a bitmap is required.
** Returns :
** --- - Character font bitmap
** ===================================================================
*/
uint8_t McuFontHelv08Bold_GetBoxHeight(void);
/*
** ===================================================================
** Method : GetBoxHeight (component GFont)
**
** Description :
** Function to get the height of the bounding box.
** Parameters : None
** Returns :
** --- - Height of bounding box
** ===================================================================
*/
PGFONT_Callbacks McuFontHelv08Bold_GetFont(void);
/*
** ===================================================================
** Method : GetFont (component GFont)
**
** Description :
** Returns callbacks for fonts to be used by the font driver.
** Parameters : None
** Returns :
** --- - Font callbacks.
** ===================================================================
*/
#define McuFontHelv08Bold_GetLineSpaceHeight() \
2
/*
** ===================================================================
** Method : GetLineSpaceHeight (component GFont)
**
** Description :
** Returns the size of the line space height
** Parameters : None
** Returns :
** --- - Error code
** ===================================================================
*/
#define McuFontHelv08Bold_GetUnderlineBoxHeight() \
2
/*
** ===================================================================
** Method : GetUnderlineBoxHeight (component GFont)
**
** Description :
** Returns the size of the underline box height
** Parameters : None
** Returns :
** --- - Error code
** ===================================================================
*/
void McuFontHelv08Bold_Deinit(void);
/*
** ===================================================================
** Method : Deinit (component GFont)
**
** Description :
** Driver de-initialization
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
void McuFontHelv08Bold_Init(void);
/*
** ===================================================================
** Method : Init (component GFont)
**
** Description :
** Driver initialization
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
/* END McuFontHelv08Bold. */
#endif
/* ifndef __McuFontHelv08Bold_H */
/*!
** @}
*/