Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: please send explaination Pin
Luc Pattyn23-Feb-12 0:31
sitebuilderLuc Pattyn23-Feb-12 0:31 
GeneralRe: please send explaination Pin
CPallini23-Feb-12 3:12
mveCPallini23-Feb-12 3:12 
AnswerRe: please send explaination Pin
Luc Pattyn23-Feb-12 3:15
sitebuilderLuc Pattyn23-Feb-12 3:15 
GeneralRe: please send explaination Pin
CPallini23-Feb-12 10:16
mveCPallini23-Feb-12 10:16 
GeneralRe: please send explaination Pin
Luc Pattyn23-Feb-12 13:12
sitebuilderLuc Pattyn23-Feb-12 13:12 
GeneralRe: please send explaination Pin
CPallini23-Feb-12 21:53
mveCPallini23-Feb-12 21:53 
AnswerRe: please send explaination Pin
Chris Losinger23-Feb-12 1:27
professionalChris Losinger23-Feb-12 1:27 
AnswerRe: please send explaination Pin
JohnNawrocki23-Feb-12 2:08
JohnNawrocki23-Feb-12 2:08 
// not code
void lxt971reset()
{
int temp2,temp1;

pioreset1=pioreset1 | 0x0010;
// hex 10 = binary 10000; | is Bitwise OR; sets the 5th position from the right in pioreset1 to a
one. Probably turning on some kind of switch


*pioaddr_ptr=9<<24;
// Not sure why one would do this but this shifts 9 (binary 1001) 24 bits to the left ( also multiplies 9 times (2 to the 24th power) which equals Binary 10010000000000000000000000000 and stores it

*piowrdata_ptr=pioreset1;
// sets a pointer to the value from setp 1

wait(10);
// I geuss a delay to let the previous action to take effect

*piowr=1;
// Turn something on

*piowr=0;
// Turn it off

wait(1000);
// Another delay

pioreset1=pioreset1 & (~0x0010);
// (~0x0010) = 01111 bacically the complement of 10000 from step 1 "piorset1 & 01111" turns off the switch truned on in step 1

*pioaddr_ptr=9<<24;
// Same as step 2 but with switch off

*piowrdata_ptr=pioreset1;
// Same as step 3
wait(10);
// more delay for timing I suppose

*piowr=1;
*piowr=0;
// The old On/Off again
}
// never did use temp1 or temp 2;
John Nawrocki
Chief Technical Advisor
Custom Molded Products

GeneralRe: please send explaination Pin
Richard MacCutchan23-Feb-12 2:36
mveRichard MacCutchan23-Feb-12 2:36 
AnswerRe: please send explaination Pin
Eytukan23-Feb-12 3:56
Eytukan23-Feb-12 3:56 
QuestionNMAKE can't find include file in subfolder -- SOLVED Pin
Alan Balkany22-Feb-12 11:50
Alan Balkany22-Feb-12 11:50 
AnswerRe: NMAKE can't find include file in subfolder Pin
David Crow22-Feb-12 16:48
David Crow22-Feb-12 16:48 
GeneralRe: NMAKE can't find include file in subfolder Pin
Alan Balkany24-Feb-12 5:45
Alan Balkany24-Feb-12 5:45 
GeneralRe: NMAKE can't find include file in subfolder Pin
David Crow24-Feb-12 5:56
David Crow24-Feb-12 5:56 
QuestionRe: NMAKE can't find include file in subfolder Pin
CPallini22-Feb-12 22:45
mveCPallini22-Feb-12 22:45 
AnswerRe: NMAKE can't find include file in subfolder Pin
Richard MacCutchan22-Feb-12 23:01
mveRichard MacCutchan22-Feb-12 23:01 
AnswerRe: NMAKE can't find include file in subfolder Pin
Richard MacCutchan22-Feb-12 22:59
mveRichard MacCutchan22-Feb-12 22:59 
GeneralRe: NMAKE can't find include file in subfolder Pin
Alan Balkany24-Feb-12 5:35
Alan Balkany24-Feb-12 5:35 
GeneralRe: NMAKE can't find include file in subfolder Pin
Richard MacCutchan24-Feb-12 6:12
mveRichard MacCutchan24-Feb-12 6:12 
AnswerRe: NMAKE can't find include file in subfolder Pin
bjorn_ht22-Feb-12 23:35
bjorn_ht22-Feb-12 23:35 
GeneralRe: NMAKE can't find include file in subfolder Pin
Richard MacCutchan23-Feb-12 2:38
mveRichard MacCutchan23-Feb-12 2:38 
GeneralRe: NMAKE can't find include file in subfolder Pin
bjorn_ht23-Feb-12 5:15
bjorn_ht23-Feb-12 5:15 
GeneralRe: NMAKE can't find include file in subfolder Pin
Richard MacCutchan23-Feb-12 6:24
mveRichard MacCutchan23-Feb-12 6:24 
GeneralRe: NMAKE can't find include file in subfolder Pin
bjorn_ht23-Feb-12 9:44
bjorn_ht23-Feb-12 9:44 
GeneralRe: NMAKE can't find include file in subfolder Pin
Alan Balkany24-Feb-12 5:37
Alan Balkany24-Feb-12 5:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.