InES Hardware Abstraction Layer
Enumerations
hal_common.h File Reference

Common #defines and typedefs. More...

#include <stdint.h>

Go to the source code of this file.

Enumerations

enum  hal_bool_t {
  FALSE = 0u, TRUE = !FALSE, DISABLE = FALSE, ENABLE = TRUE,
  DISABLED = FALSE, ENABLED = TRUE
}
 Often used TRUE / FALSE type. More...
 
enum  hal_data_width_t { BYTE = 8u, HWORD = 16u, WORD = 32u, DWORD = 64u }
 Defines standard data width. More...
 
enum  hal_peripheral_t {
  PER_ADC1, PER_ADC2, PER_ADC3, PER_DAC,
  PER_DMA1, PER_DMA2, PER_FMC, PER_GPIOA,
  PER_GPIOB, PER_GPIOC, PER_GPIOD, PER_GPIOE,
  PER_GPIOF, PER_GPIOG, PER_GPIOH, PER_GPIOI,
  PER_GPIOJ, PER_GPIOK, PER_PWR, PER_TIM2,
  PER_TIM3, PER_TIM4, PER_TIM5
}
 Defines a peripheral.
 

Detailed Description

Common #defines and typedefs.

$Id$

Enumeration Type Documentation

◆ hal_bool_t

enum hal_bool_t

Often used TRUE / FALSE type.

Enumerator
FALSE 

FALSE.

TRUE 

TRUE, aka. not FALSE.

DISABLE 

Typically used as command -> DISABLE.

ENABLE 

Typically used as command -> ENABLE.

DISABLED 

Typically used as status -> DISABLED.

ENABLED 

Typically used as status -> ENABLED.

◆ hal_data_width_t

Defines standard data width.

Enumerator
BYTE 

Byte.

HWORD 

Halfword.

WORD 

Word.

DWORD 

Doubleword.