| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
AN3128 bảng dữ liệu(PDF) 36 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3128 bảng dữ liệu(HTML) 36 Page - STMicroelectronics |
|
36 / 105 page ![]() Multi-input embedded GUI library firmware AN3128 36/105 Doc ID 16918 Rev 5 Example: /* Declares and initiates a Page Object */ GL_Page_TypeDef page1; Create_PageObj( &page1 ); /* Declares & initiates a GraphChart Object and add it with specified coordinates to a Page Object */ int16_tMyChartPoints[24]; MyChartPoints = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24}; GL_PageControls_TypeDef* MyGraphChart = NewGraphChart("MyGraphChart", "Hours", "Wh", MyChartPoints, 24); AddPageControlObj( 0, 0, MyGraphChart, &page1 ); Once a GraphChart object instance is created using the NewGraphChart function, the GraphChart object itself provides all its features through its internal function pointers. Figure 14, 15, 16, show, in detail, the GraphChart object properties and methods which the final application can use to interact with. 4.1.13 AddPageControlObj API global function Table 18 describes the AddPageControlObj function: The values of PosX and PosY parameters represent the coordinates of the top-left corner of the object according to the origin coordinates placed in the top-right corner of the LCD. Return value The created object pointer or null if the object cannot be created Required preconditions None Called functions No API/HAL layer functions Table 17. NewGraphChart API function (continued) Function name NewGraphChart Table 18. AddPageControlObj API function Name Description Function name AddPageControlObj Function prototype GL_ErrStatus AddPageControlObj (GL_uint16_t PosX, GL_uint8_t PosY, GL_PageControls_TypeDef* objPTR, GL_Page_TypeDef* pagePTR) Behavior description Add a new control object to the page Input parameter {x} PosX & PosY: max and min coordinates for X and Y axis *objPTR: pointer to object structure *pagePTR: pointer to page structure Output parameter {x} None Return value GL_OK if successful, GL_ERROR otherwise Required preconditions NewXXX must have been called before, where XXX represents a kind of graphical object Called functions No API/HAL layer functions |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |