My learning thread - thanks everyone
Sun Jan 16 2011, 12:37 am
I think you need to first take a look at proper type definitions
u8 = unsigned char
s8 = char
u16 = unsigned short / unsigned int
s16 = short / int
u32 = unsigned long
s32 = long
now just pass the varable to that function of type u8. now u get it?
u8 = unsigned char
s8 = char
u16 = unsigned short / unsigned int
s16 = short / int
u32 = unsigned long
s32 = long
now just pass the varable to that function of type u8. now u get it?
Sun Jan 16 2011, 05:59 am
yes ajay i already research that on the net but i dont get it why the function mx_cal defined variable line and then i dont see it is use inside the fuction..
[ Edited Sun Jan 16 2011, 06:12 am ]
Mon Jan 17 2011, 12:02 am
i dont get it why the function mx_cal defined variable line and then i dont see it is use inside the fuction..romel_emperado
Yes it is strange.
Where is this code from and what language is it ?
Mon Jan 17 2011, 12:46 am
hi experimentuk, thanks for your reply.
Problem is now solved..
instead of calling the function mx_call i just store the weight and met value to a global variable so that i can still access it to other function..
By the way this code is C..
im modifying the ez430 chronos watch firmware...
Actually the watch is using the msp430xxx microcontroller.
Problem is now solved..
instead of calling the function mx_call i just store the weight and met value to a global variable so that i can still access it to other function..
By the way this code is C..
im modifying the ez430 chronos watch firmware...
Actually the watch is using the msp430xxx microcontroller.
Mon Jan 17 2011, 08:39 am
hi again guys another question. Hehe
what does it mean if i declare a value like thi?
what is (5u) what kind of value is that?
what does it mean if i declare a value like thi?
#define datalog_interval (5u)
what is (5u) what kind of value is that?
Mon Jan 17 2011, 05:35 pm
hi romel
it can be understand after seeing ur all code
5u can be 5*u
u may be any no
it can be understand after seeing ur all code
5u can be 5*u
u may be any no
romel_emperado like this.
Mon Jan 17 2011, 10:46 pm
u is for unsigned int i guess...
sometimes we use UL for unsigned long... thats all i think
sometimes we use UL for unsigned long... thats all i think
romel_emperado like this.
Tue Jan 18 2011, 10:45 am
thanks ajy ang majoka...
anyway Im almost done with this project.. the unexpected result of my work is good... hehe lol
thanks for your help guys... thanks for your help of explaining everything here
anyway Im almost done with this project.. the unexpected result of my work is good... hehe lol
thanks for your help guys... thanks for your help of explaining everything here
Powered by e107 Forum System