Hi There,
Basically i have two .c files and a .h file
One of the .c files contains a function:
TransferMessage(int Port, struct Device *example)
{
example[Node].Address = ...
Type: Posts; User: r_james14
Hi There,
Basically i have two .c files and a .h file
One of the .c files contains a function:
TransferMessage(int Port, struct Device *example)
{
example[Node].Address = ...
Hi,
This probably sounds daft but im trying to keep my code tidy.
I have a structure defined, like the one below
struct property
{
hi guys,
thanks for the responses, got the problem solved but also taught me how and why,
thanks again
Hi There,
I have a .h file that is accessed by two different .c file
in my .h file I need a structure such as
struct {
int mph;
Basically i am trying to programme a micro-controller with three identical ports, each port already has a structure associated with each CAN_A, CAN_B, CAN_C.
To read and write to I simple have to...
Hi There,
A simple question but i have no idea how to do it
if i do the following
#include......
static struct FLEXCAN2_tag* const pCAN = &CAN_B ;
This is probelry a really daft question but can anyone point me in the direction of the followling piece of code
Outcome= (First<= Second) ? First : Second;
all are shorts
thanks
Hi There,
I have a 16 bit number which is a reading from a register, i want to break it down so
bit 8 =ee8
bit7 = ee7
bit6 = ee6
etc
11792
what i need to do is put text over the top of the faces
james
Hi There,
My knowledge on printing is none existent so please bear with me,
i need to write a simple c++ programme that prints three words over a picture.
So simply there is a predefined...
no not with a range
Hi There,
Quick question i need a way of getting a random number in the range of 15 to 88.
Im using visual studio.
Does anyone know of a way of doing this
thanks
Hi There,
Is there anything obvious as to why this wouldn't work, basically i have three files. Two .c files and one .h
in the .h i have a structure called "structure"
below it:
struct...
Hi There,
Is there a simple way of rounding up numbers lol.
I got a valuebetween 0 and 100 and when i multiply it by 327.67 i need to round it up to the nearest whole number, is there a way i...
#define WD_License(h,pLicense)\
WD_FUNCTION(IOCTL_WD_LICENSE, h, pLicense, sizeof (WD_LICENSE), FALSE)
is the definition of it and when i debug it, all the variables and structures...
is it possible that i am using a 64bit machine be the problem?
okay i been playing around and the WD License function isnt returning anything, it seems not to be going anything anyone any suggests where to start fault finding.
It does build but does nothing....
// Open driver
hWD = INVALID_HANDLE_VALUE ;
hWD = WD_Open ( ) ;
// Exit if driver not opened
if ( hWD == INVALID_HANDLE_VALUE ) return ( 1 ) ;...
Hi There,
Properly a really daft question but i am developing some code and am trouble with one specific function. It contains functions like WD_Open WD_License etc.
Is there any issue using...
Hi There,
I have a string for example
char string = "D100"
I need to find a way to convert this to ascii and put each character into a int defined variable in a structure. I'll give an...
Hi,
I've got a string which i need to convert into a integer, potentially the integer is a maximum of 8 bytes long.
So first of all will atoi be able to convert it, secondly what definition...
Hi There,
I apologise if this is really daft but im totally lost.
I have a unsigned int for example (0x4f1164)
i am doing the following bit shifting
sCanMsg.abData[ByteNum] = Data;...
hi there,
I'm trying to develop a piece of code which has the following function deceleration
void CanSetData ( void* pSrc, unsigned short ByteNum, unsigned short NumBytes )
the problem i...
Hi There,
I have a hexadecimal number anything between 0 and ffff, what is the simplist way of printing certain bits. Reason im asking is the hexideciamal is broken down into its individual bits...
Hi There,
Thanks everyone for your replies, it was insanely simple in the end and i just unsigned char the input, solved all (well for my purposes anyways).
Thanks Again