Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 124377

Forum Post: RE: I/O Interface API

$
0
0

thank you for reply...

I'm using Microsoft Visual Studio (both C++ / C#) for app development in WinCE 6.0.

#ifndef CTL_CODE

#define CTL_CODE( DeviceType, Function, Method, Access ) ( \
((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method) \
)
#endif

#define IOCTL_GPIO_SETBIT  \
CTL_CODE(FILE_DEVICE_UNKNOWN, 0x0300, METHOD_BUFFERED, FILE_ANY_ACCESS)


Now, my questions is:

  • What's the meaning of function "0x0300" in above code?  
  • It's SET the GPIO:bit TRUE, But how?
  • Is it same in any kit, even my custom board?

Best regards...


Viewing all articles
Browse latest Browse all 124377

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>