Method for calling function containing pointer parameter between different operation platforms
A technology of function calling and operating platform, applied in the direction of program control device, multi-program device, etc., can solve the problems of single cross-platform function and unfavorable technology development, and achieve the effect of strong operability and simple and reasonable method
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0137] Work goal: the sending platform starts the camera on the receiving platform to take pictures.
[0138] Working process: sending platform sending interface function: sendcommand 1. Where 1 is msg. The receiving platform receives and executes the interface function. Find the corresponding function OPENCAMERA(). This function call takes no parameters. Execute directly. After the execution is completed, the interface function execution success information is returned to the sending platform.
example 2
[0140] Work goal: the sending platform calls the function CAMERACAPTURE(Width, Height) on the receiving platform, commands the camera of the receiving platform to capture an image with a size of 300 bytes, and requests to obtain the image data.
[0141] Working process: the sending platform first determines the message number msg=2. Then create a pointer * The memory space pointed to by param is used to store the width value Width and height value Height required by the function, and store the address pointer of image data storage * ptrparam. The data in the memory space is shown in Figure 4. Each of the parameters occupies 4 bytes respectively, * The offset of ptrparam is 8, * The storage space A pointed to by ptrparam occupies 300 bytes.
[0142] Therefore, the sending platform first sends the interface function:
[0143] sendcommand(2, INOUT, 12, 0, IN, 300, 8);
[0144] Then send all 12 bytes of data in that memory space.
[0145]The receiving platform first receiv...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com