Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

about "alias" function in c++ programming for dspi

Status
Not open for further replies.

boon1987

Newbie level 6
Joined
Sep 18, 2009
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
malaysia
Activity points
1,437
hello guys,

I am a beginner to the c programming in micro controller, so if the question sound stupid please forgive me.

I want to assign the special name to each bit for SFR. For example, PORTBbits.RB0 represent the bit 0 in port B register. I want to give name to PORTbits.RB0 like Switch1. It will ease my programming process. Can i do this in the programming?

One thing i have in my mind is using the Alias attribute in the c programming provided by microchip but it is not working. Can anyone give me some example on it? i google search already but no related information. Please offer some help, thanks.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top