UDI Environment: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
Partial revert - There should be no semicolons after #includes |
→Specific-length Types: Not really sure I see the point in these typedefs? Either way, I made them use the stdint types so that the widths are constant between archs |
||
Line 22:
The Uniform Driver Interface declares specific-length types for use in arithmetic and logical operations. They have fixed lengths that don't change between different platforms.
<source lang="C">
typedef bool udi_bool_t;
</source>
The driver must use these types while passing arguments and returning variables. They can also use the fast ints instead of the fixed width ones.
▲2. '''typedef unsigned short udi_ubit16_t'''
▲3. '''typedef unsigned int udi_ubit32_t '''
▲4. '''typedef char udi_sbit8_t'''
▲5. '''typedef short udi_sbit16_t'''
▲6. '''typedef int udi_sbit32_t'''
==== Abstract Types ====
|