This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
union | Union32 |
union | Union16 |
Defines | |
#define | LITTLE_ENDIAN |
#define | PASS 0 |
#define | FAIL 1 |
#define | _MEM_TYPE_BIT_ |
#define | _MEM_TYPE_FAST_ |
#define | _MEM_TYPE_MEDFAST_ |
#define | _MEM_TYPE_MEDSLOW_ |
#define | _MEM_TYPE_SLOW_ |
#define | INTEL_ALIGNMENT LITTLE_ENDIAN |
#define | MOTOROLA_ALIGNMENT BIG_ENDIAN |
#define | MSB(u16) (((U8* )&u16)[1]) |
#define | LSB(u16) (((U8* )&u16)[0]) |
#define | MSW(u32) (((U16*)&u32)[1]) |
#define | LSW(u32) (((U16*)&u32)[0]) |
#define | MSB0(u32) (((U8* )&u32)[3]) |
#define | MSB1(u32) (((U8* )&u32)[2]) |
#define | MSB2(u32) (((U8* )&u32)[1]) |
#define | MSB3(u32) (((U8* )&u32)[0]) |
#define | LSB0(u32) MSB3(u32) |
#define | LSB1(u32) MSB2(u32) |
#define | LSB2(u32) MSB1(u32) |
#define | LSB3(u32) MSB0(u32) |
#define | Le16(b) |
#define | Le32(b) |
#define | htons(a) Le16(a) |
#define | ntohs(a) htons(a) |
#define | htonl(a) Le32(a) |
#define | ntohl(a) htonl(a) |
#define | ENABLE 1 |
#define | ENABLED 1 |
#define | DISABLED 0 |
#define | DISABLE 0 |
#define | FALSE (0==1) |
#define | TRUE (1==1) |
#define | KO 0 |
#define | OK 1 |
#define | OFF 0 |
#define | ON 1 |
#define | NULL 0 |
#define | CLR 0 |
#define | SET 1 |
#define | LOW(U16) ((Uchar)U16) |
#define | HIGH(U16) ((Uchar)(U16>>8)) |
#define | TST_BIT_X(addrx, mask) (*addrx & mask) |
#define | SET_BIT_X(addrx, mask) (*addrx = (*addrx | mask)) |
#define | CLR_BIT_X(addrx, mask) (*addrx = (*addrx & ~mask)) |
#define | OUT_X(addrx, value) (*addrx = value) |
#define | IN_X(addrx) (*addrx) |
#define | Max(a, b) ( (a)>(b) ? (a) : (b) ) |
#define | Min(a, b) ( (a)<(b) ? (a) : (b) ) |
#define | Upper(val, n) ( ((val)+(n)) & ~((n)-1) ) |
#define | Align_up(val, n) ( ((val)+(n)-1) & ~((n)-1) ) |
#define | Align_down(val, n) ( (val) & ~((n)-1) ) |
#define | Long_call(addr) ((*(void (_ConstType_*)(void))(addr))()) |
#define | SET_SFR_BIT(sfr_reg, bit_pos, bit_val) { sfr_reg &= ~(1<<(bit_pos)); sfr_reg |= ((bit_val)<<(bit_pos));} |
#define | bit_is_clear(PORT, POSITION) ((PORT & (1<<POSITION)) == 0 ) |
#define | bit_is_set(PORT, POSITION) ((PORT & (1<<POSITION)) != 0 ) |
#define | __IOMACRO_H |
#define | TID_GUARD(proc) ((__TID__ & 0x7FF0) != ((90 << 8) | ((proc) << 4))) |
#define | SFR_B(_NAME, _ADDR) |
#define | SFR_B2(_NAME1, _NAME2, _ADDR) |
#define | SFR_B_EXT(_NAME, _ADDR) |
#define | SFR_W(_NAME, _ADDR) |
#define | SFR_W_EXT(_NAME, _ADDR) |
Typedefs | |
typedef float | Float16 |
typedef unsigned char | U8 |
typedef unsigned short | U16 |
typedef unsigned long | U32 |
typedef signed char | S8 |
typedef signed short | S16 |
typedef long | S32 |
typedef unsigned char | Bool |
typedef U8 | Status |
typedef Bool | Status_bool |
typedef unsigned char | Uchar |
typedef unsigned char | Uint8 |
typedef unsigned int | Uint16 |
typedef unsigned long int | Uint32 |
typedef char | Int8 |
typedef int | Int16 |
typedef long int | Int32 |
typedef unsigned char | Byte |
typedef unsigned int | Word |
typedef unsigned long int | DWord |
typedef char | p_uart_ptchar |
typedef char | r_uart_ptchar |
#define LITTLE_ENDIAN |
Definition at line 22 of file compiler.h.
#define PASS 0 |
Definition at line 41 of file compiler.h.
#define FAIL 1 |
Definition at line 42 of file compiler.h.
#define _MEM_TYPE_BIT_ |
Definition at line 53 of file compiler.h.
#define _MEM_TYPE_FAST_ |
Definition at line 54 of file compiler.h.
#define _MEM_TYPE_MEDFAST_ |
Definition at line 55 of file compiler.h.
#define _MEM_TYPE_MEDSLOW_ |
Definition at line 56 of file compiler.h.
#define _MEM_TYPE_SLOW_ |
Definition at line 57 of file compiler.h.
#define INTEL_ALIGNMENT LITTLE_ENDIAN |
Definition at line 157 of file compiler.h.
#define MOTOROLA_ALIGNMENT BIG_ENDIAN |
Definition at line 158 of file compiler.h.
#define MSB | ( | u16 | ) | (((U8* )&u16)[1]) |
#define LSB | ( | u16 | ) | (((U8* )&u16)[0]) |
#define MSW | ( | u32 | ) | (((U16*)&u32)[1]) |
Definition at line 164 of file compiler.h.
#define LSW | ( | u32 | ) | (((U16*)&u32)[0]) |
Definition at line 165 of file compiler.h.
#define MSB0 | ( | u32 | ) | (((U8* )&u32)[3]) |
Definition at line 166 of file compiler.h.
#define MSB1 | ( | u32 | ) | (((U8* )&u32)[2]) |
Definition at line 167 of file compiler.h.
#define MSB2 | ( | u32 | ) | (((U8* )&u32)[1]) |
Definition at line 168 of file compiler.h.
#define MSB3 | ( | u32 | ) | (((U8* )&u32)[0]) |
Definition at line 169 of file compiler.h.
#define LSB0 | ( | u32 | ) | MSB3(u32) |
Definition at line 170 of file compiler.h.
Referenced by cdc_get_line_coding(), and cdc_set_line_coding().
#define LSB1 | ( | u32 | ) | MSB2(u32) |
Definition at line 171 of file compiler.h.
Referenced by cdc_get_line_coding(), and cdc_set_line_coding().
#define LSB2 | ( | u32 | ) | MSB1(u32) |
Definition at line 172 of file compiler.h.
Referenced by cdc_get_line_coding(), and cdc_set_line_coding().
#define LSB3 | ( | u32 | ) | MSB0(u32) |
Definition at line 173 of file compiler.h.
Referenced by cdc_get_line_coding(), and cdc_set_line_coding().
#define Le16 | ( | b | ) |
Value:
Definition at line 190 of file compiler.h.
#define Le32 | ( | b | ) |
#define htons | ( | a | ) | Le16(a) |
Definition at line 206 of file compiler.h.
#define ntohs | ( | a | ) | htons(a) |
Definition at line 207 of file compiler.h.
#define htonl | ( | a | ) | Le32(a) |
Definition at line 208 of file compiler.h.
#define ntohl | ( | a | ) | htonl(a) |
Definition at line 209 of file compiler.h.
#define ENABLE 1 |
Definition at line 219 of file compiler.h.
#define ENABLED 1 |
Definition at line 220 of file compiler.h.
Referenced by usb_clear_feature(), and usb_set_feature().
#define DISABLED 0 |
Definition at line 221 of file compiler.h.
Referenced by usb_clear_feature(), usb_general_interrupt(), and usb_task_init().
#define DISABLE 0 |
Definition at line 222 of file compiler.h.
#define FALSE (0==1) |
Definition at line 223 of file compiler.h.
Referenced by uart_usb_tx_ready(), usb_device_task(), usb_get_descriptor(), usb_init_device(), usb_process_request(), usb_user_get_descriptor(), and usb_user_read_request().
#define TRUE (1==1) |
Definition at line 224 of file compiler.h.
Referenced by spi_init(), uart_init(), uart_usb_tx_ready(), usb_device_task(), usb_get_descriptor(), and usb_user_read_request().
#define KO 0 |
Definition at line 226 of file compiler.h.
#define OK 1 |
Definition at line 227 of file compiler.h.
#define OFF 0 |
Definition at line 228 of file compiler.h.
#define ON 1 |
Definition at line 229 of file compiler.h.
#define NULL 0 |
Definition at line 231 of file compiler.h.
#define CLR 0 |
Definition at line 234 of file compiler.h.
#define SET 1 |
Definition at line 235 of file compiler.h.
Definition at line 239 of file compiler.h.
Definition at line 240 of file compiler.h.
#define TST_BIT_X | ( | addrx, | |||
mask | ) | (*addrx & mask) |
Definition at line 241 of file compiler.h.
#define SET_BIT_X | ( | addrx, | |||
mask | ) | (*addrx = (*addrx | mask)) |
Definition at line 242 of file compiler.h.
#define CLR_BIT_X | ( | addrx, | |||
mask | ) | (*addrx = (*addrx & ~mask)) |
Definition at line 243 of file compiler.h.
#define OUT_X | ( | addrx, | |||
value | ) | (*addrx = value) |
Definition at line 244 of file compiler.h.
#define IN_X | ( | addrx | ) | (*addrx) |
Definition at line 245 of file compiler.h.
#define Max | ( | a, | |||
b | ) | ( (a)>(b) ? (a) : (b) ) |
Definition at line 247 of file compiler.h.
#define Min | ( | a, | |||
b | ) | ( (a)<(b) ? (a) : (b) ) |
Definition at line 248 of file compiler.h.
#define Upper | ( | val, | |||
n | ) | ( ((val)+(n)) & ~((n)-1) ) |
Definition at line 257 of file compiler.h.
#define Align_up | ( | val, | |||
n | ) | ( ((val)+(n)-1) & ~((n)-1) ) |
Definition at line 266 of file compiler.h.
#define Align_down | ( | val, | |||
n | ) | ( (val) & ~((n)-1) ) |
Definition at line 275 of file compiler.h.
#define Long_call | ( | addr | ) | ((*(void (_ConstType_*)(void))(addr))()) |
Definition at line 292 of file compiler.h.
#define SET_SFR_BIT | ( | sfr_reg, | |||
bit_pos, | |||||
bit_val | ) | { sfr_reg &= ~(1<<(bit_pos)); sfr_reg |= ((bit_val)<<(bit_pos));} |
Definition at line 304 of file compiler.h.
#define bit_is_clear | ( | PORT, | |||
POSITION | ) | ((PORT & (1<<POSITION)) == 0 ) |
Definition at line 314 of file compiler.h.
#define bit_is_set | ( | PORT, | |||
POSITION | ) | ((PORT & (1<<POSITION)) != 0 ) |
Definition at line 324 of file compiler.h.
#define __IOMACRO_H |
Definition at line 332 of file compiler.h.
#define TID_GUARD | ( | proc | ) | ((__TID__ & 0x7FF0) != ((90 << 8) | ((proc) << 4))) |
Definition at line 334 of file compiler.h.
#define SFR_B | ( | _NAME, | |||
_ADDR | ) |
Value:
SFR_B_BITS(_NAME, _ADDR, \ Bit0,Bit1,Bit2,Bit3,Bit4,Bit5,Bit6,Bit7)
Definition at line 445 of file compiler.h.
#define SFR_B2 | ( | _NAME1, | |||
_NAME2, | |||||
_ADDR | ) |
Value:
SFR_B2_BITS(_NAME1, _NAME2, _ADDR, \ Bit0,Bit1,Bit2,Bit3,Bit4,Bit5,Bit6,Bit7)
Definition at line 447 of file compiler.h.
#define SFR_B_EXT | ( | _NAME, | |||
_ADDR | ) |
Value:
SFR_B_BITS_EXT(_NAME, _ADDR, \ Bit0,Bit1,Bit2,Bit3,Bit4,Bit5,Bit6,Bit7)
Definition at line 449 of file compiler.h.
#define SFR_W | ( | _NAME, | |||
_ADDR | ) |
Value:
SFR_W_BITS(_NAME, _ADDR, \ Bit0,Bit1,Bit2,Bit3,Bit4,Bit5,Bit6,Bit7, \ Bit8,Bit9,Bit10,Bit11,Bit12,Bit13,Bit14,Bit15)
Definition at line 452 of file compiler.h.
#define SFR_W_EXT | ( | _NAME, | |||
_ADDR | ) |
Value:
SFR_W_BITS_EXT(_NAME, _ADDR, \ Bit0,Bit1,Bit2,Bit3,Bit4,Bit5,Bit6,Bit7, \ Bit8,Bit9,Bit10,Bit11,Bit12,Bit13,Bit14,Bit15)
Definition at line 456 of file compiler.h.
typedef float Float16 |
Definition at line 25 of file compiler.h.
typedef unsigned char U8 |
Definition at line 27 of file compiler.h.
typedef unsigned short U16 |
Definition at line 28 of file compiler.h.
typedef unsigned long U32 |
Definition at line 29 of file compiler.h.
typedef signed char S8 |
Definition at line 30 of file compiler.h.
typedef signed short S16 |
Definition at line 31 of file compiler.h.
typedef long S32 |
Definition at line 32 of file compiler.h.
typedef unsigned char Bool |
Definition at line 36 of file compiler.h.
Definition at line 39 of file compiler.h.
typedef Bool Status_bool |
Definition at line 40 of file compiler.h.
typedef unsigned char Uchar |
Definition at line 60 of file compiler.h.
typedef unsigned char Uint8 |
Definition at line 63 of file compiler.h.
typedef unsigned int Uint16 |
Definition at line 64 of file compiler.h.
typedef unsigned long int Uint32 |
Definition at line 65 of file compiler.h.
typedef char Int8 |
Definition at line 67 of file compiler.h.
typedef int Int16 |
Definition at line 68 of file compiler.h.
typedef long int Int32 |
Definition at line 69 of file compiler.h.
typedef unsigned char Byte |
Definition at line 71 of file compiler.h.
typedef unsigned int Word |
Definition at line 72 of file compiler.h.
typedef unsigned long int DWord |
Definition at line 73 of file compiler.h.
typedef char p_uart_ptchar |
Definition at line 99 of file compiler.h.
typedef char r_uart_ptchar |
Definition at line 100 of file compiler.h.