test public
Dependencies: HttpServer_snapshot_mbed-os
DisplayApp Class Reference
A class to communicate a DisplayApp. More...
#include <DisplayApp.h>
Data Structures | |
struct | touch_pos_t |
Touch position structure. More... | |
Public Member Functions | |
DisplayApp (osPriority tsk_pri=osPriorityNormal, uint32_t stack_size=2048) | |
Constructor: Initializes DisplayApp. | |
int | SendRgb888 (uint8_t *buf, uint32_t pic_width, uint32_t pic_height) |
Send RGB888 data. | |
int | SendJpeg (uint8_t *buf, uint32_t size) |
Send JPEG data. | |
void | SetCallback (Callback< void()> func) |
Attach a function to call whenever a serial interrupt is generated. | |
template<typename T > | |
void | SetCallback (T *obj, void(T::*method)()) |
Attach a function to call when touch panel int. | |
template<typename T > | |
void | SetCallback (T *obj, void(*method)(T *)) |
Attach a member function to call when touch panel int. | |
int | GetMaxTouchNum (void) |
Get the maximum number of simultaneous touches. | |
int | GetCoordinates (int touch_buff_num, touch_pos_t *p_touch) |
Get the coordinates. |
Detailed Description
A class to communicate a DisplayApp.
Definition at line 31 of file DisplayApp.h.
Constructor & Destructor Documentation
DisplayApp | ( | osPriority | tsk_pri = osPriorityNormal , |
uint32_t | stack_size = 2048 |
||
) |
Constructor: Initializes DisplayApp.
- Parameters:
-
tsk_pri Priority of the thread function. (default: osPriorityNormal). init_pri Priority of before the USB is connected. (default: osPriorityLow). stack_size stack size (in bytes) requirements for the thread function. (default: 2048).
Definition at line 104 of file DisplayApp.cpp.
Member Function Documentation
int GetCoordinates | ( | int | touch_buff_num, |
touch_pos_t * | p_touch | ||
) |
Get the coordinates.
- Parameters:
-
touch_buff_num The number of structure p_touch. p_touch Touch position information.
- Returns:
- The number of touch points.
Definition at line 221 of file DisplayApp.cpp.
int GetMaxTouchNum | ( | void | ) |
Get the maximum number of simultaneous touches.
- Returns:
- The maximum number of simultaneous touches.
Definition at line 217 of file DisplayApp.cpp.
int SendJpeg | ( | uint8_t * | buf, |
uint32_t | size | ||
) |
Send JPEG data.
- Parameters:
-
buf data buffer address size data size
- Returns:
- send data size
Definition at line 207 of file DisplayApp.cpp.
int SendRgb888 | ( | uint8_t * | buf, |
uint32_t | pic_width, | ||
uint32_t | pic_height | ||
) |
Send RGB888 data.
- Parameters:
-
buf data buffer address pic_width picture width pic_height picture height
- Returns:
- send data size
Definition at line 123 of file DisplayApp.cpp.
void SetCallback | ( | T * | obj, |
void(T::*)() | method | ||
) |
Attach a function to call when touch panel int.
- Parameters:
-
obj pointer to the object to call the member function on method pointer to the member function to be called
Definition at line 77 of file DisplayApp.h.
void SetCallback | ( | Callback< void()> | func ) |
Attach a function to call whenever a serial interrupt is generated.
- Parameters:
-
func A pointer to a void function, or 0 to set as none
Definition at line 203 of file DisplayApp.cpp.
void SetCallback | ( | T * | obj, |
void(*)(T *) | method | ||
) |
Attach a member function to call when touch panel int.
- Parameters:
-
obj pointer to the object to call the member function on method pointer to the member function to be called
Definition at line 88 of file DisplayApp.h.
Generated on Wed Jul 13 2022 05:33:37 by 1.7.2