Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 348 → Rev 349

/C-OSD/trunk/max7456_software_spi.h
84,34 → 84,38
void write_ascii_string_pgm(uint8_t, uint8_t, char*);
 
/**
* Write only the last three digits of a <number> at <x>/<y> to MAX7456
* display memory. takes full 16bit numbers as well for stuff
* like compass only taking three characters (values <= 999)
* Write only some digits of a unsigned <number> at <x>/<y> to MAX7456 display memory
* <num> represents the largest multiple of 10 that will still be displayable as
* the first digit, so num = 10 will be 0-99 and so on
* <pad> = 1 will cause blank spaced to be filled up with zeros e.g. 007 instead of 7
*/
void write_3digit_number_u(uint8_t, uint8_t, uint16_t);
void write_ndigit_number_u(uint8_t, uint8_t, uint16_t, int16_t, uint8_t);
 
/**
* Write only the last two digits of a number at <x>/<y> to MAX7456
* display memory. takes full 16bit numbers as well for stuff
* like seconds only taking two characters (values <= 99)
* Since this is used for seconds only and it looks better, there
* is a trading 0 attached
* Write only some digits of a signed <number> at <x>/<y> to MAX7456 display memory
* <num> represents the largest multiple of 10 that will still be displayable as
* the first digit, so num = 10 will be 0-99 and so on
* <pad> = 1 will cause blank spaced to be filled up with zeros e.g. 007 instead of 7
*/
void write_2digit_number_u(uint8_t, uint8_t, uint16_t);
/**
* write a unsigned number as /10th at <x>/<y> to MAX7456 display memory
*/
void write_number_u_10th(uint8_t, uint8_t, uint16_t);
void write_ndigit_number_s(uint8_t, uint8_t, int16_t, int16_t, uint8_t);
 
/**
* write a unsigned number at <x>/<y> to MAX7456 display memory
* Write only some digits of a unsigned <number> at <x>/<y> to MAX7456 display memory
* as /10th of the value
* <num> represents the largest multiple of 10 that will still be displayable as
* the first digit, so num = 10 will be 0-99 and so on
* <pad> = 1 will cause blank spaced to be filled up with zeros e.g. 00.7 instead of .7
*/
void write_number_u(uint8_t, uint8_t, uint16_t);
void write_ndigit_number_u_10th(uint8_t, uint8_t, uint16_t, int16_t, uint8_t);
 
/**
* write a signed number at <x>/<y> to MAX7456 display memory
* Write only some digits of a signed <number> at <x>/<y> to MAX7456 display memory
* as /10th of the value
* <num> represents the largest multiple of 10 that will still be displayable as
* the first digit, so num = 10 will be 0-99 and so on
* <pad> = 1 will cause blank spaced to be filled up with zeros e.g. 00.7 instead of .7
*/
void write_number_s(uint8_t, uint8_t, int16_t);
void write_ndigit_number_s_10th(uint8_t, uint8_t, int16_t, int16_t, uint8_t);
 
/**
* write <seconds> as human readable time at <x>/<y> to MAX7456 display mem