Re: Accessing peripherals from a managed application
- From: "Mario" <alphatommy@xxxxxxxxxxx>
- Date: 15 Jun 2006 10:26:27 -0700
Bruce,
Thanks for the post. I do have the drivers for the hardware since they
came with the devevelopment board. What I have not figure out is how
to access to the driver from a managed application. From what I have
gathered, this is the sequence for developing a managed application
with VS2005 and PB (WinCE 5.0)
1. Create an OS image wtih PB.
2. Somehow figure out the headers contained in coredll.dll
3. use dllimport to import coredll.dll in the managed application in
VS2005.
4. Call on the imported functions to access the hardware.
Am I far off? The first experiment that I want to do is just to send
some data through the SPI or UART from a managed app. Again, thanks
for any additional input.
Best Regards,
Mario
Bruce Eitman (eMVP) wrote:
Mario:
Since nobody else replied, I will. I am not a Managed App developer, but I
can tell you how this is typically done.
Typically, the hardware is accessed via a driver written in C/C++, then a
managed app accesses the driver to access the hardware. It is intentionally
difficult, or impossible, to access hardware from managed code.
--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net
Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member
"Mario" <alphatommy@xxxxxxxxxxx> wrote in message
news:1149526298.777516.168540@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I would appreciate it if someone could point me to a link, docs, or
tutorials regarding peripheral access from a managed application.
Things that I am interested in includes simple initialization and usage
of the SPI interface or GPIOs. I am using XScale with Win CE 5.0 and
developing the managed application with VS2005(C#). Thanks in advance.
Best Regards,
Mario
.
- Follow-Ups:
- Re: Accessing peripherals from a managed application
- From: Paul G. Tobey [eMVP]
- Re: Accessing peripherals from a managed application
- References:
- Accessing peripherals from a managed application
- From: Mario
- Re: Accessing peripherals from a managed application
- From: Bruce Eitman \(eMVP\)
- Accessing peripherals from a managed application
- Prev by Date: Re: Accessing peripherals from a managed application
- Next by Date: Re: Accessing peripherals from a managed application
- Previous by thread: Re: Accessing peripherals from a managed application
- Next by thread: Re: Accessing peripherals from a managed application
- Index(es):
Relevant Pages
|