hal_type_t − typedefs for HAL datatypes |
typedef ... hal_bit_t; |
A type which may have a value of 0 or nonzero. |
typedef ... hal_s32_t; |
A type which may have a value from -2147483648 to 2147483647. |
typedef ... hal_u32_t; |
A type which may have a value from 0 to 4294967295. |
typedef ... hal_float_t; |
A floating-point type, which typically has the same precision and range as the C type float. |
typedef enum hal_type_t; |
HAL_BIT |
Corresponds to the type hal_bit_t. |
HAL_FLOAT |
Corresponds to the type hal_float_t. |
HAL_S32 |
Corresponds to the type hal_s32_t. |
HAL_U32 |
Corresponds to the type hal_u32_t. |
hal_bit_t is typically a typedef to an integer type whose range is larger than just 0 and 1. When testing the value of a hal_bit_t, never compare it to 1. Prefer one of the following: |
• |
if(b) |
|||
• |
if(b != 0) |
hal_pin_new(3hal), hal_param_new(3hal) |