This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
robots:hako:firmware:welcome [2012/09/26 18:53] karina [Mainboard - Software - Notation - Types and prefixes] |
robots:hako:firmware:welcome [2012/09/26 19:03] karina [Mainboard - Software - Notation - Types and prefixes] |
||
---|---|---|---|
Line 73: | Line 73: | ||
==== Mainboard - Software - Notation - Types and prefixes ==== | ==== Mainboard - Software - Notation - Types and prefixes ==== | ||
- | * Unordered List ItemTypes/ | + | * [[robots: |
- | * Typedef prefixes | + | * [[robots: |
- | * Definition prefixes | + | * [[robots: |
- | * Modifier refixes | + | * [[robots: |
- | * Validity prefixes | + | * [[robots: |
* [[robots: | * [[robots: | ||
Line 87: | Line 87: | ||
That is why STW introduced unambiguous types like ' | That is why STW introduced unambiguous types like ' | ||
- | **Recommended unambiguous type definitions and prefixes** | + | == Recommended unambiguous type definitions and prefixes |
Line 127: | Line 127: | ||
- | **Type definition (typedef) prefixes** | + | == Type definition (typedef) prefixes |
^Prefix^Example^Description^ | ^Prefix^Example^Description^ | ||
|T_|typedef struct { ... } T_Struct; | |T_|typedef struct { ... } T_Struct; | ||
Line 134: | Line 134: | ||
|PR_|typedef void (*PR_Function)( const uint8 ou8_Parameter );| type definition for function pointer| | |PR_|typedef void (*PR_Function)( const uint8 ou8_Parameter );| type definition for function pointer| | ||
- | **Definition prefixes** | + | == Definition prefixes |
^Prefix^Example^Description^ | ^Prefix^Example^Description^ | ||
|t_|T_Struct t_Struct;| structure (or bitfield)| | |t_|T_Struct t_Struct;| structure (or bitfield)| | ||
Line 145: | Line 145: | ||
- | **Modifier prefixes** | + | == Modifier prefixes |
^Prefix^Example^Description^ | ^Prefix^Example^Description^ | ||
|p<type prefix> | |p<type prefix> | ||
|a<type prefix> | |a<type prefix> | ||
- | **Area of validity prefixes** | + | == Area of validity prefixes |
^Prefix^Example^Description^ | ^Prefix^Example^Description^ | ||
|g<type prefix>| uint8 gu8_Global; |global| | |g<type prefix>| uint8 gu8_Global; |global| |