Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
|
Utilities for Pervasive Displays Library Suite - Advanced edition. More...
#include "hV_HAL_Peripherals.h"
#include "hV_List_Boards.h"
#include "hV_List_Types.h"
#include "hV_List_Constants.h"
Classes | |
struct | touch_t |
Structure for touch. More... | |
Functions | |||||||
Text format functions | |||||||
Utilities to format float, 64-bit unsigned integer, hexadecimal and period into string | |||||||
char * | utf2iso (char *s) | ||||||
UTF-8 to ISO-8859-1 Converter. | |||||||
char * | formatString (const char *format,...) | ||||||
Format string or char array. | |||||||
char * | trimString (char *text) | ||||||
Remove leading and ending characters. | |||||||
Numeric functions | |||||||
Trigonometric functions, range check and management
| |||||||
int32_t | cos32x100 (int32_t degreesX100) | ||||||
Cosinus. | |||||||
int32_t | sin32x100 (int32_t degreesX100) | ||||||
Sinus. | |||||||
uint8_t | getDecimalPlaces (int32_t unit=1) | ||||||
Number of decimal places. | |||||||
Miscellaneous functions | |||||||
Swap and miscellaneous functions Check value in range
| |||||||
template<typename T> | |||||||
T | checkRange (T value, T valueMin, T valueMax) | ||||||
Update min and max values. | |||||||
template<typename T> | |||||||
void | setMinMax (T value, T &valueMin, T &valueMax) | ||||||
Update min and max values. | |||||||
uint32_t | roundUp (uint32_t value, uint16_t modulo) | ||||||
Round-up. | |||||||
Debug functions | |||||||
Configuration and OTP
| |||||||
void | debugConfiguration (pins_t board) | ||||||
Print the current configuration. | |||||||
void | debugOTP (uint8_t *table, uint8_t size, uint16_t codeCOG=0x0000, uint8_t codeDriver=0x00) | ||||||
Print the OTP table. | |||||||
Utilities for Pervasive Displays Library Suite - Advanced edition.
Project Pervasive Displays Library Suite
Based on highView technology
T checkRange | ( | T | value, |
T | valueMin, | ||
T | valueMax ) |
Update min and max values.
value | value to consider |
valueMin | minimum value to update if value < valueMin |
valueMax | maximum value to update if value > valueMax |
int32_t cos32x100 | ( | int32_t | degreesX100 | ) |
Cosinus.
degreesX100 | angle in degrees, x100 |
void debugConfiguration | ( | pins_t | board | ) |
Print the current configuration.
Steps 2 through 11
void debugOTP | ( | uint8_t * | table, |
uint8_t | size, | ||
uint16_t | codeCOG = 0x0000, | ||
uint8_t | codeDriver = 0x00 ) |
Print the OTP table.
table | OTP table |
size | size |
codeOTP | COG variant, example COG_BWRY_SMALL |
char * formatString | ( | const char * | format, |
... ) |
Format string or char array.
Based on vsprint
format | format with standard codes |
... | list of values |
uint8_t getDecimalPlaces | ( | int32_t | unit = 1 | ) |
Number of decimal places.
unit | 1 = default, 10, 100, 1000 |
uint32_t roundUp | ( | uint32_t | value, |
uint16_t | modulo ) |
Round-up.
value | value to round-up |
modulo | modulo |
void setMinMax | ( | T | value, |
T & | valueMin, | ||
T & | valueMax ) |
Update min and max values.
value | value to consider |
valueMin | minimum value to update if value < valueMin |
valueMax | maximum value to update if value > valueMax |
int32_t sin32x100 | ( | int32_t | degreesX100 | ) |
Sinus.
degreesX100 | angle in degrees, x100 |
char * trimString | ( | char * | text | ) |
Remove leading and ending characters.
text | input text |
char * utf2iso | ( | char * | s | ) |
UTF-8 to ISO-8859-1 Converter.
s | UTF-8 string, input |