How do I write sbit in C# -


i porting c code of firmware c# , not sure how keyword

"sbit" 

can written in c#. in advance.

link @ben robinson,

"(...)with typical 8051 applications, necessary access individual bits within sfr. sbit type provides access bit-addressable sfrs , other bit-addressable objects. example:

sbit ea = 0xaf; 

this declaration defines ea sfr bit @ address 0xaf. on 8051, enable bit in interrupt enable register.(...)".

sbit name = sfr-address ^ bit-position; 

this low level, might try use c++.net, matter. c# high level language, using pointers can little tricky, can done, escapes c# real intent.
use c++.net made functions, final code of both same [clr (common language run-time)], machine not note diference.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -