Prev: GetContrast and SetContrast Ce 6
Next: The SCAN_SetReaderParams Error occured when using SMDK (Symbol Mobility Development Kit)1.5 for .NET
From: Selma on 24 Jun 2008 08:05 Hi, Can you give a link for an exact sample or send a simple code to this address:slm_guzel(a)hotmail.com ? Thanks in advance.
From: Chris Tacke, MVP on 24 Jun 2008 09:54 Registers and mapped IO are very, very hardware dependent so I can't really provide an example that's going to be a whole lot of use (unless we just amazingly have the same hardware). The PhysicalAddressPointer class is really straightforward - you give it an address to map and then you read or write to it just like you would in C. Something like this PhysicalAddressPointer pap = new PhysicalAddressPointer(myAddress, size); pap.WriteInt32(myIntvalue); myIntvalue = pap.ReadInt32(); -Chris "Selma G?zel" wrote in message news:20086248537slm_guzel(a)hotmail.com... > Hi, > Can you give a link for an exact sample or send a simple code to this > address:slm_guzel(a)hotmail.com > ? > Thanks in advance.
From: "selma güzel" slm on 25 Jun 2008 09:19 Message-ID: <51386bd6ff44486c857e54f336a5c126(a)newspe.com> X-Mailer: http://www.umailcampaign.com, ip log:88.252.250.136 Newsgroups: microsoft.public.dotnet.framework.compactframework NNTP-Posting-Host: 22.bb.5446.static.theplanet.com 70.84.187.34 Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP06.phx.gbl!newspe.com Lines: 1 Xref: TK2MSFTNGP01.phx.gbl microsoft.public.dotnet.framework.compactframework:117142 Hi, What is the reference for PhysicalAddressPointer parameters:myAddress, size Namely,according to where,must i set these? Thanks. url:http://www.ureader.com/msg/14288388.aspx
From: Chris Tacke, MVP on 25 Jun 2008 10:34 You get the address and size based on your hardware data sheet. If you don't know the address, or don't know that you need an address, then I question whether you should be even doing this. What exactly are you trying to do that you think you need the PhysicalAddressPointer for? -Chris " selma g�zel <slm guzel(a)hotmail.com>" wrote in message news:... > Message-ID: <51386bd6ff44486c857e54f336a5c126(a)newspe.com> > X-Mailer: http://www.umailcampaign.com, ip log:88.252.250.136 > Newsgroups: microsoft.public.dotnet.framework.compactframework > NNTP-Posting-Host: 22.bb.5446.static.theplanet.com 70.84.187.34 > Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP06.phx.gbl!newspe.com > Lines: 1 > Xref: TK2MSFTNGP01.phx.gbl > microsoft.public.dotnet.framework.compactframework:117142 > > Hi, > What is the reference for PhysicalAddressPointer parameters:myAddress, > size > Namely,according to where,must i set these? > Thanks. > > url:http://www.ureader.com/msg/14288388.aspx
From: selmaguzel on 3 Jul 2008 08:56
Hi, Thanks for your reply. After changing the address for my sbc i have gotten result: PhysicalAddressPointer gpacon, gpadata; gpacon = new PhysicalAddressPointer(0x56000010, 0x04); gpadata = new PhysicalAddressPointer(0x56000014, 0x04); gpacon.WriteInt32(0X00); // GPBCON set GPBDAT as output port. gpadata.WriteInt32(0x01); // Write to gpadata textBox1.Text=gpadata.ReadByte().ToString(); That's all:) Of course according to your suggestions;) Thanks. "Chris Tacke, MVP" wrote: > Registers and mapped IO are very, very hardware dependent so I can't really > provide an example that's going to be a whole lot of use (unless we just > amazingly have the same hardware). The PhysicalAddressPointer class is > really straightforward - you give it an address to map and then you read or > write to it just like you would in C. > > Something like this > > PhysicalAddressPointer pap = new PhysicalAddressPointer(myAddress, size); > pap.WriteInt32(myIntvalue); > myIntvalue = pap.ReadInt32(); > > -Chris > > > > "Selma G?zel" wrote in message news:20086248537slm_guzel(a)hotmail.com... > > Hi, > > Can you give a link for an exact sample or send a simple code to this > > address:slm_guzel(a)hotmail.com > > ? > > Thanks in advance. > |