[C++] newbie notation question...
From: Admiral Krieg (luke_krieg_spambad__at_hotmail.com)
Date: 12/29/03
- Next message: Admiral Krieg: "Correction: [C++] newbie notation question..."
- Previous message: Robert W Hand: "Re: pow() vs exp(log())"
- Next in thread: Admiral Krieg: "Correction: [C++] newbie notation question..."
- Reply: Admiral Krieg: "Correction: [C++] newbie notation question..."
- Reply: Martijn Lievaart: "Re: [C++] newbie notation question..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Dec 2003 13:34:32 +0000 (UTC)
Dear group,
Newbie here, with a (hopefully) quick and painless question. Your help
would really mean a lot to me!
I have been given the C++ source-code (Microsoft Visual C++, 6.0) for a
programme which controlls a nifty piece of hardware I recently purchased.
The supplier gave me the following instructions:
"Additionally, you can set the following USB registers:
1. Modulation frequency (80kHz-20MHz) Register 08d Default 00h=20 MHz
2. Integration time (4ms-1s) Register 09d Default 02h=8ms"
and the relevant section of code is:
// ----------------------------------------------------------------------
// If you need to send data to a camera register, use a call of the form:
printf("Sending data...\n");
UserAdr = (BYTE)42; // (or whatever)
UserData = (BYTE)43; // (or whatever)
WinDriver_Send02(hUSB2CAM, UserAdr, UserData);
// ----------------------------------------------------------------------
Now, I am not new to programming in general (Matlab, Pascal etc), but I
am not sure what "08d" and "00h" means in the above context.
If I want to set the default value for the modulation frequency, for
example, do I write:
UserAdr = 8; // (supposed to be 08h?)
UserData = 0x00; // (supposed to be 00h?)
?
Or am I totally off?
Looking forward to your replies!
Newbie Krieg
- Next message: Admiral Krieg: "Correction: [C++] newbie notation question..."
- Previous message: Robert W Hand: "Re: pow() vs exp(log())"
- Next in thread: Admiral Krieg: "Correction: [C++] newbie notation question..."
- Reply: Admiral Krieg: "Correction: [C++] newbie notation question..."
- Reply: Martijn Lievaart: "Re: [C++] newbie notation question..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]