CircleOS
1
|
General header for the STM32-circle projects. More...
Go to the source code of this file.
Data Structures | |
struct | tMEMS_Info |
MEMS state description. More... | |
struct | tPointer_Info |
Pointer position description. More... | |
struct | tCX_USART_Config |
USART extension configuration. More... | |
struct | tCX_SPI_Config |
SPI extension configuration. More... | |
struct | tFontDef |
struct | tFontTable |
struct | tTrans |
struct | tMenuItem |
Menu item description. More... | |
struct | tMenu |
Menu description. More... | |
struct | tToolbarItem |
Toolbar item description. More... | |
struct | tToolbar |
Toolbar description. More... | |
struct | tListItem |
List item description. More... | |
struct | tList |
List description. More... | |
struct | _tagVOLINFO |
Volume information structure. More... | |
struct | _tagDIRENT |
Directory entry structure. More... | |
struct | _tagDIRINFO |
Directory search structure. More... | |
struct | _tagFILEINFO |
File handle structure. More... | |
Macros | |
#define | CX_GPIO_LOW (0) |
#define | CX_GPIO_HIGH (1) |
#define | CX_NO_ERROR 0 |
#define | CX_USART_PARITYERR 0x01 |
#define | CX_USART_FRAMEERR 0x02 |
#define | CX_USART_NOISEERR 0x04 |
#define | CX_USART_OVERRUN 0x08 |
#define | CX_SPI_OVERRUN 0x20 |
#define | CX_SPI_MODF 0x40 |
#define | CX_SPI_MODE_SLAVE 0 |
#define | CX_SPI_MODE_MASTER 1 |
#define | CX_SPI_POL_LOW 0 |
#define | CX_SPI_POL_HIGH 1 |
#define | CX_SPI_PHA_FIRST 0 |
#define | CX_SPI_PHA_SECOND 1 |
#define | CX_SPI_MSBFIRST 0 |
#define | CX_SPI_LSBFIRST 1 |
#define | CX_SPI_8_Bits 0 |
#define | CX_SPI_16_Bits 1 |
#define | CX_SPI_Soft 0 |
#define | CX_SPI_Hard 1 |
#define | RGB_MAKE(xR, xG, xB) |
#define | RGB_RED RGB_MAKE(0xFF, 0x00, 0x00) |
#define | RGB_GREEN RGB_MAKE(0x00, 0xFF, 0x00) |
#define | RGB_PASTELGREEN RGB_MAKE(0x00, 0xFF, 0x00) |
#define | RGB_LIGHTBLUE RGB_MAKE(0x00, 0x00, 0xFF) |
#define | RGB_BLUE RGB_MAKE(0x00, 0x00, 0xFF) |
#define | RGB_BLACK RGB_MAKE(0x00, 0x00, 0x00) |
#define | RGB_WHITE RGB_MAKE(0xFF, 0xFF, 0xFF) |
#define | RGB_YELLOW RGB_MAKE(0xFF, 0xFF, 0x00) |
#define | RGB_MAGENTA RGB_MAKE(0xFF, 0x00, 0xFF) |
#define | RGB_TURQUOISE RGB_MAKE(0x00, 0xFF, 0xFF) |
#define | RGB_ORANGE RGB_MAKE(0xFF, 0x80, 0x40) |
#define | RGB_PINK RGB_MAKE(0xFF, 0x3F, 0xFF) |
#define | RGB_LIGHTGREY RGB_MAKE(0xC0, 0xC0, 0xC0) |
#define | RGB_DARKGREY RGB_MAKE(0x80, 0x80, 0x80) |
#define | RGB_DARKBLUE RGB_MAKE(0x00, 0x00, 0xA0) |
#define | RGB_LIGHTPURPLE RGB_MAKE(0xFF, 0x00, 0x80) |
#define | RGB_DARKPURPLE RGB_MAKE(0x80, 0x00, 0x80) |
#define | RGB_BROWN RGB_MAKE(0x80, 0x40, 0x00) |
#define | RGB_BURGUNDY RGB_MAKE(0x80, 0x00, 0x00) |
#define | RGB_FORESTGREEN RGB_MAKE(0x80, 0x80, 0x00) |
#define | RGB_GRASSGREEN RGB_MAKE(0x40, 0x80, 0x80) |
#define | BACKLIGHTMIN 0x1000 |
#define | DEFAULT_CCR_BACKLIGHTSTART 0x8000 |
#define | CHAR_WIDTH 7 |
#define | CHAR_HEIGHT 14 |
#define | MAX_FONT_NB 20 |
#define | INVERTED_TEXT 1 |
#define | NORMAL_TEXT 0 |
#define | ALL_SCREEN -1 /*< To center the text in the screen for draw functions. */ |
#define | REMOVE_MENU 0x01 |
#define | APP_MENU 0x02 |
#define | MENU_MAXITEM 8 |
#define | BKP_SYS1 1 |
#define | BKP_SYS2 2 |
#define | BKP_SYS3 3 |
#define | BKP_SYS4 4 |
#define | BKP_SYS5 5 |
#define | BKP_SYS6 6 |
#define | BKP_SYS7 11 |
#define | BKP_SYS8 12 |
#define | BKP_SYS9 13 |
#define | BKP_SYS10 14 |
#define | BKP_SYS11 15 |
#define | BKP_SYS12 16 |
#define | BKP_SYS13 17 |
#define | BKP_SYS14 18 |
#define | BKP_USER1 7 |
#define | BKP_USER2 8 |
#define | BKP_USER3 9 |
#define | BKP_USER4 10 |
#define | TOOLBAR_MAXITEMS 4 |
#define | LIST_MAXITEM 64 |
#define | MAX_PATH_LENGTH 200 |
#define | FS_OK 0 |
#define | FS_EOF 1 |
#define | FS_WRITEPROT 2 |
#define | FS_NOTFOUND 3 |
#define | FS_PATHLEN 4 |
#define | FS_ALLOCNEW 5 |
#define | FS_ERRMISC 0xffffffff |
#define | FS_OPEN_EXISTING 0x00 |
#define | FS_READ 0x01 |
#define | FS_WRITE 0x02 |
#define | FS_CREATE_NEW 0x04 |
#define | FS_CREATE_ALWAYS 0x08 |
#define | FS_OPEN_ALWAYS 0x10 |
#define | FS_ATTR_READ_ONLY 0x01 |
#define | FS_ATTR_HIDDEN 0x02 |
#define | FS_ATTR_SYSTEM 0x04 |
#define | FS_ATTR_VOLUME_ID 0x08 |
#define | FS_ATTR_DIRECTORY 0x10 |
#define | FS_ATTR_ARCHIVE 0x20 |
#define | FS_ATTR_LONG_NAME (FS_ATTR_READ_ONLY | FS_ATTR_HIDDEN | FS_ATTR_SYSTEM | FS_ATTR_VOLUME_ID) |
Typedefs | |
typedef int(* | tFctXY )(int x, int y) |
typedef s8 | sound_type |
typedef enum STORAGE_device | eSTORAGE_device |
typedef struct _tagVOLINFO | VOLINFO |
typedef struct _tagVOLINFO * | PVOLINFO |
typedef struct _tagDIRENT | DIRENT |
typedef struct _tagDIRENT * | PDIRENT |
typedef struct _tagDIRINFO | DIRINFO |
typedef struct _tagDIRINFO * | PDIRINFO |
typedef struct _tagFILEINFO | FILEINFO |
typedef struct _tagFILEINFO * | PFILEINFO |
typedef void(* | tAppPtrMgr )(coord_t sposX, coord_t sposY) |
Variables | |
enum eSpeed | CurrentSpeed |
It contains the list of the utilities functions organized by sections (MEMS, LCD, POINTER, ...)
Definition in file circle_api.h.
#define ALL_SCREEN -1 /*< To center the text in the screen for draw functions. */ |
Definition at line 718 of file circle_api.h.
#define APP_MENU 0x02 |
Menu flag: item is an application.
Definition at line 908 of file circle_api.h.
#define BACKLIGHTMIN 0x1000 |
Minimal PWM rate.
Definition at line 609 of file circle_api.h.
#define BKP_SYS1 1 |
Backup register reserved for OS
Definition at line 1050 of file circle_api.h.
#define BKP_SYS10 14 |
Backup register reserved for OS
Definition at line 1059 of file circle_api.h.
#define BKP_SYS11 15 |
Backup register reserved for OS
Definition at line 1060 of file circle_api.h.
#define BKP_SYS12 16 |
Backup register reserved for OS
Definition at line 1061 of file circle_api.h.
#define BKP_SYS13 17 |
Backup register reserved for OS
Definition at line 1062 of file circle_api.h.
#define BKP_SYS14 18 |
Backup register reserved for OS
Definition at line 1063 of file circle_api.h.
#define BKP_SYS2 2 |
Backup register reserved for OS
Definition at line 1051 of file circle_api.h.
#define BKP_SYS3 3 |
Backup register reserved for OS
Definition at line 1052 of file circle_api.h.
#define BKP_SYS4 4 |
Backup register reserved for OS
Definition at line 1053 of file circle_api.h.
#define BKP_SYS5 5 |
Backup register reserved for OS
Definition at line 1054 of file circle_api.h.
#define BKP_SYS6 6 |
Backup register reserved for OS
Definition at line 1055 of file circle_api.h.
#define BKP_SYS7 11 |
Backup register reserved for OS
Definition at line 1056 of file circle_api.h.
#define BKP_SYS8 12 |
Backup register reserved for OS
Definition at line 1057 of file circle_api.h.
#define BKP_SYS9 13 |
Backup register reserved for OS
Definition at line 1058 of file circle_api.h.
#define BKP_USER1 7 |
Backup available for users application
Definition at line 1065 of file circle_api.h.
#define BKP_USER2 8 |
Backup available for users application
Definition at line 1066 of file circle_api.h.
#define BKP_USER3 9 |
Backup available for users application
Definition at line 1067 of file circle_api.h.
#define BKP_USER4 10 |
Backup available for users application
Definition at line 1068 of file circle_api.h.
#define CHAR_HEIGHT 14 |
Height of a character.
Definition at line 614 of file circle_api.h.
#define CHAR_WIDTH 7 |
Width of a character.
Definition at line 613 of file circle_api.h.
#define CX_GPIO_HIGH (1) |
Definition at line 537 of file circle_api.h.
#define CX_GPIO_LOW (0) |
Definition at line 536 of file circle_api.h.
#define CX_NO_ERROR 0 |
Definition at line 539 of file circle_api.h.
#define CX_SPI_16_Bits 1 |
Definition at line 557 of file circle_api.h.
#define CX_SPI_8_Bits 0 |
Definition at line 556 of file circle_api.h.
#define CX_SPI_Hard 1 |
Definition at line 559 of file circle_api.h.
#define CX_SPI_LSBFIRST 1 |
Definition at line 555 of file circle_api.h.
#define CX_SPI_MODE_MASTER 1 |
Definition at line 549 of file circle_api.h.
#define CX_SPI_MODE_SLAVE 0 |
Definition at line 548 of file circle_api.h.
#define CX_SPI_MODF 0x40 |
Definition at line 546 of file circle_api.h.
#define CX_SPI_MSBFIRST 0 |
Definition at line 554 of file circle_api.h.
#define CX_SPI_OVERRUN 0x20 |
Definition at line 545 of file circle_api.h.
#define CX_SPI_PHA_FIRST 0 |
Definition at line 552 of file circle_api.h.
#define CX_SPI_PHA_SECOND 1 |
Definition at line 553 of file circle_api.h.
#define CX_SPI_POL_HIGH 1 |
Definition at line 551 of file circle_api.h.
#define CX_SPI_POL_LOW 0 |
Definition at line 550 of file circle_api.h.
#define CX_SPI_Soft 0 |
Definition at line 558 of file circle_api.h.
#define CX_USART_FRAMEERR 0x02 |
Definition at line 541 of file circle_api.h.
#define CX_USART_NOISEERR 0x04 |
Definition at line 542 of file circle_api.h.
#define CX_USART_OVERRUN 0x08 |
Definition at line 543 of file circle_api.h.
#define CX_USART_PARITYERR 0x01 |
Definition at line 540 of file circle_api.h.
#define DEFAULT_CCR_BACKLIGHTSTART 0x8000 |
Default PWM rate.
Definition at line 610 of file circle_api.h.
#define FS_ALLOCNEW 5 |
Definition at line 1280 of file circle_api.h.
#define FS_ATTR_ARCHIVE 0x20 |
Definition at line 1299 of file circle_api.h.
#define FS_ATTR_DIRECTORY 0x10 |
Definition at line 1298 of file circle_api.h.
#define FS_ATTR_HIDDEN 0x02 |
Definition at line 1295 of file circle_api.h.
#define FS_ATTR_LONG_NAME (FS_ATTR_READ_ONLY | FS_ATTR_HIDDEN | FS_ATTR_SYSTEM | FS_ATTR_VOLUME_ID) |
Definition at line 1300 of file circle_api.h.
#define FS_ATTR_READ_ONLY 0x01 |
Definition at line 1294 of file circle_api.h.
#define FS_ATTR_SYSTEM 0x04 |
Definition at line 1296 of file circle_api.h.
#define FS_ATTR_VOLUME_ID 0x08 |
Definition at line 1297 of file circle_api.h.
#define FS_CREATE_ALWAYS 0x08 |
Definition at line 1289 of file circle_api.h.
#define FS_CREATE_NEW 0x04 |
Definition at line 1288 of file circle_api.h.
#define FS_EOF 1 |
Definition at line 1276 of file circle_api.h.
#define FS_ERRMISC 0xffffffff |
Definition at line 1281 of file circle_api.h.
#define FS_NOTFOUND 3 |
Definition at line 1278 of file circle_api.h.
#define FS_OK 0 |
Definition at line 1275 of file circle_api.h.
#define FS_OPEN_ALWAYS 0x10 |
Definition at line 1290 of file circle_api.h.
#define FS_OPEN_EXISTING 0x00 |
Definition at line 1285 of file circle_api.h.
#define FS_PATHLEN 4 |
Definition at line 1279 of file circle_api.h.
#define FS_READ 0x01 |
Definition at line 1286 of file circle_api.h.
#define FS_WRITE 0x02 |
Definition at line 1287 of file circle_api.h.
#define FS_WRITEPROT 2 |
Definition at line 1277 of file circle_api.h.
#define INVERTED_TEXT 1 |
Text is displayed inverted.
Definition at line 716 of file circle_api.h.
#define LIST_MAXITEM 64 |
Definition at line 1128 of file circle_api.h.
#define MAX_FONT_NB 20 |
Definition at line 617 of file circle_api.h.
#define MAX_PATH_LENGTH 200 |
Definition at line 1271 of file circle_api.h.
#define MENU_MAXITEM 8 |
Maximum number of item in a menu.
Definition at line 909 of file circle_api.h.
#define NORMAL_TEXT 0 |
Text is displayed normaly.
Definition at line 717 of file circle_api.h.
#define REMOVE_MENU 0x01 |
Menu flag: remove menu when item selected.
Definition at line 907 of file circle_api.h.
#define RGB_BLACK RGB_MAKE(0x00, 0x00, 0x00) |
Definition at line 591 of file circle_api.h.
#define RGB_BLUE RGB_MAKE(0x00, 0x00, 0xFF) |
Definition at line 590 of file circle_api.h.
#define RGB_BROWN RGB_MAKE(0x80, 0x40, 0x00) |
Definition at line 603 of file circle_api.h.
#define RGB_BURGUNDY RGB_MAKE(0x80, 0x00, 0x00) |
Definition at line 604 of file circle_api.h.
#define RGB_DARKBLUE RGB_MAKE(0x00, 0x00, 0xA0) |
Definition at line 600 of file circle_api.h.
#define RGB_DARKGREY RGB_MAKE(0x80, 0x80, 0x80) |
Definition at line 599 of file circle_api.h.
#define RGB_DARKPURPLE RGB_MAKE(0x80, 0x00, 0x80) |
Definition at line 602 of file circle_api.h.
#define RGB_FORESTGREEN RGB_MAKE(0x80, 0x80, 0x00) |
Definition at line 605 of file circle_api.h.
#define RGB_GRASSGREEN RGB_MAKE(0x40, 0x80, 0x80) |
Definition at line 606 of file circle_api.h.
#define RGB_GREEN RGB_MAKE(0x00, 0xFF, 0x00) |
Definition at line 587 of file circle_api.h.
#define RGB_LIGHTBLUE RGB_MAKE(0x00, 0x00, 0xFF) |
Definition at line 589 of file circle_api.h.
#define RGB_LIGHTGREY RGB_MAKE(0xC0, 0xC0, 0xC0) |
Definition at line 598 of file circle_api.h.
#define RGB_LIGHTPURPLE RGB_MAKE(0xFF, 0x00, 0x80) |
Definition at line 601 of file circle_api.h.
#define RGB_MAGENTA RGB_MAKE(0xFF, 0x00, 0xFF) |
Definition at line 594 of file circle_api.h.
#define RGB_MAKE | ( | xR, | |
xG, | |||
xB | |||
) |
Macro to make a LCD compatible color format from RGB.
Definition at line 579 of file circle_api.h.
#define RGB_ORANGE RGB_MAKE(0xFF, 0x80, 0x40) |
Definition at line 596 of file circle_api.h.
#define RGB_PASTELGREEN RGB_MAKE(0x00, 0xFF, 0x00) |
Definition at line 588 of file circle_api.h.
#define RGB_PINK RGB_MAKE(0xFF, 0x3F, 0xFF) |
Definition at line 597 of file circle_api.h.
#define RGB_RED RGB_MAKE(0xFF, 0x00, 0x00) |
Definition at line 586 of file circle_api.h.
#define RGB_TURQUOISE RGB_MAKE(0x00, 0xFF, 0xFF) |
Definition at line 595 of file circle_api.h.
#define RGB_WHITE RGB_MAKE(0xFF, 0xFF, 0xFF) |
Definition at line 592 of file circle_api.h.
#define RGB_YELLOW RGB_MAKE(0xFF, 0xFF, 0x00) |
Definition at line 593 of file circle_api.h.
#define TOOLBAR_MAXITEMS 4 |
Definition at line 1087 of file circle_api.h.
typedef struct _tagDIRENT DIRENT |
typedef struct _tagDIRINFO DIRINFO |
typedef enum STORAGE_device eSTORAGE_device |
typedef struct _tagFILEINFO FILEINFO |
typedef struct _tagDIRENT * PDIRENT |
typedef struct _tagDIRINFO * PDIRINFO |
typedef struct _tagFILEINFO * PFILEINFO |
typedef struct _tagVOLINFO * PVOLINFO |
typedef s8 sound_type |
Definition at line 1199 of file circle_api.h.
typedef void( * tAppPtrMgr)(coord_t sposX, coord_t sposY) |
Definition at line 1476 of file circle_api.h.
typedef int( * tFctXY)(int x, int y) |
Definition at line 722 of file circle_api.h.
typedef struct _tagVOLINFO VOLINFO |
enum Align |
Enumerator | |
---|---|
LEFT | |
CENTER | |
RIGHT |
Definition at line 715 of file circle_api.h.
Enumerator | |
---|---|
AUDIO_MODE | |
VOICE_MODE | |
AUDIO_CIRCULAR_MODE | |
VOICE_CIRCULAR_MODE |
Definition at line 1191 of file circle_api.h.
enum AUDIO_Format_enum |
Enumerator | |
---|---|
MONO | |
STEREO |
Definition at line 1196 of file circle_api.h.
enum AUDIO_Frequency_enum |
Enumerator | |
---|---|
FRQ_48KHZ | |
FRQ_44KHZ | |
FRQ_22KHZ | |
FRQ_16KHZ | |
FRQ_8KHZ |
Definition at line 1195 of file circle_api.h.
enum AUDIO_Length_enum |
Enumerator | |
---|---|
LG_8_BITS | |
LG_16_BITS |
Definition at line 1194 of file circle_api.h.
Enumerator | |
---|---|
NO_SOUND | |
IS_PLAYING |
Definition at line 1192 of file circle_api.h.
Enumerator | |
---|---|
FULL | |
LOW_EMPTY | |
HIGH_EMPTY |
Definition at line 1197 of file circle_api.h.
Enumerator | |
---|---|
EMPTY | |
LOW_FULL | |
HIGH_FULL |
Definition at line 1198 of file circle_api.h.
Enumerator | |
---|---|
NO_RECORD | |
IS_RECORDING |
Definition at line 1193 of file circle_api.h.
enum BUTTON_mode |
List of all the available button mode in the CircleOS.
Enumerator | |
---|---|
BUTTON_DISABLED |
No action on the button is detected. |
BUTTON_ONOFF |
Detect ON/OFF pression type. |
BUTTON_ONOFF_FORMAIN |
Special mode for main screen. |
BUTTON_WITHCLICK |
Currently unused. |
Definition at line 366 of file circle_api.h.
enum BUTTON_state |
Description of the button states provided by CircleOS.
Definition at line 380 of file circle_api.h.
enum BUZZER_mode |
Without the undefined mode, the CircleOS provides 5 modes for its buzzer.
Definition at line 875 of file circle_api.h.
enum ENUM_FontID |
Enumerator | |
---|---|
FONT_PRIMER | |
FONT_PRIMERX2 | |
FONT_MEDIUM | |
FONT_MEDIUMX2 | |
FONT_NUMBERS |
Definition at line 619 of file circle_api.h.
enum eSchHandler |
Definition at line 75 of file circle_api.h.
enum eSpeed |
Available clock speeds.
Enumerator | |
---|---|
SPEED_VERY_LOW | |
SPEED_LOW | |
SPEED_MEDIUM | |
SPEED_HIGH | |
SPEED_VERY_HIGH |
Definition at line 66 of file circle_api.h.
enum JOYSTICK_state |
Description of the joystick states provided by CircleOS.
Definition at line 419 of file circle_api.h.
enum LED_id |
List of all the available LEDs.
Enumerator | |
---|---|
LED_GREEN |
Green led id. |
LED_RED |
Red led id. |
Definition at line 1027 of file circle_api.h.
enum LED_mode |
LEDs may be on, off or blinking slowly or fastly!
Enumerator | |
---|---|
LED_UNDEF |
Undefined led mode. |
LED_OFF |
Put off the led. |
LED_ON |
Put on the led. |
LED_BLINKING_LF |
Slow blinking led mode. |
LED_BLINKING_HF |
Fast blinking led mode. |
Definition at line 1012 of file circle_api.h.
enum MENU_code |
List of all the codes available for CircleOS application return values.
Definition at line 949 of file circle_api.h.
enum ON_OFF_enum |
Enumerator | |
---|---|
OFF | |
ON |
Definition at line 1190 of file circle_api.h.
enum POINTER_mode |
Description of all the available pointer modes in CircleOS.
Definition at line 266 of file circle_api.h.
enum POINTER_state |
Despite beeing in a undefined state, the pointer can be disabled or enable.
Enumerator | |
---|---|
POINTER_S_UNDEF |
Pointer state is unknown! |
POINTER_S_DISABLED |
Pointer is disabled. |
POINTER_S_ENABLED |
Pointer is enabled. |
Definition at line 282 of file circle_api.h.
The 4 possible MEM rotations.
Enumerator | |
---|---|
V12 | |
V3 | |
V6 | |
V9 | |
V12BMP | |
V3BMP | |
V6BMP | |
V9BMP |
Definition at line 199 of file circle_api.h.
enum SELECT_MODE |
Definition at line 720 of file circle_api.h.
enum STORAGE_device |
Enumerator | |
---|---|
MMCSD_SDIO | |
INTERNAL_FLASH |
Definition at line 1304 of file circle_api.h.
enum tCX_GPIO_Mode |
Extension connector GPIO mode (high impedance, input, output...).
Enumerator | |
---|---|
CX_GPIO_Mode_IN_HIZ | |
CX_GPIO_Mode_IN_PD | |
CX_GPIO_Mode_IN_PU | |
CX_GPIO_Mode_OUT_OD | |
CX_GPIO_Mode_OUT_PP |
Definition at line 473 of file circle_api.h.
enum tCX_ID |
Extension connector configuration (for GPIO, index = pin number of the connector).
Definition at line 458 of file circle_api.h.
enum tCX_SPI_Speed |
Enumerator | |
---|---|
CX_SPI_Speed_standard | |
CX_SPI_Speed_VeryLow | |
CX_SPI_Speed_Low | |
CX_SPI_Mode_High | |
CX_SPI_Mode_VeryHigh |
Definition at line 505 of file circle_api.h.
enum TOUCHSCR_Mode_enum |
Enumerator | |
---|---|
TS_NORMAL | |
TS_DRAWING | |
TS_CALIBRATION |
Definition at line 1131 of file circle_api.h.
enum eSpeed CurrentSpeed |