Datasheet

Hi
Higher
Highest
107
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Specifics
mikroC PRO for AVR
CHAPTER 3
Prototype
unsigned short Hi(long number);
Returns Returns next to the lowest byte of number, bits 8..15.
Description
Function returns next to the lowest byte of number. Function does not interpret
bit patterns of number – it merely returns 8 bits as found in register.
This is an “inline” routine; code is generated in the place of the call, so the call
doesn’t count against the nested call limit.
Requires Arguments must be variable of scalar type (i.e. Arithmetic Types and Pointers).
Example
d = 0x1AC30F4;
tmp = Hi(d); // Equals 0x30
Prototype
unsigned short Higher(long number);
Returns Returns next to the highest byte of number, bits 16..23.
Description
Function returns next to the highest byte of number. Function does not interpret
bit patterns of number – it merely returns 8 bits as found in register.
This is an “inline” routine; code is generated in the place of the call, so the call
doesn’t count against the nested call limit.
Requires Arguments must be variable of scalar type (i.e. Arithmetic Types and Pointers).
Example
d = 0x1AC30F4;
tmp = Higher(d); // Equals 0xAC
Prototype
unsigned short Highest(long number);
Returns Returns the highest byte of number, bits 24..31.
Description
Function returns the highest byte of number. Function does not interpret bit pat-
terns of number – it merely returns 8 bits as found in register.
This is an “inline” routine; code is generated in the place of the call, so the call
doesn’t count against the nested call limit.
Requires Arguments must be variable of scalar type (i.e. Arithmetic Types and Pointers).
Example
d = 0x1AC30F4;
tmp = Highest(d); // Equals 0x01