CubeMon-Vue-Demo-STM32F407VGT6U
utility.h File Reference

Defines and functions that are useful for all library files. More...

Go to the source code of this file.

Typedefs

typedef enum retStatus retStatus
 possible return values
 
typedef enum dioStates dioStates
 digital input/output states
 
typedef enum aioData aioData
 digital input/output module data
 
typedef uint32_t(* liner_fce) (uint32_t)
 

Enumerations

enum  retStatus {
  EOK = 0 , EPERM = 1 , EIO = 5 , ENXIO = 6 ,
  EACCES = 13 , EFAULT = 14 , EBUSY = 16 , ENODEV = 19 ,
  EINVAL = 22 , EBADRQC = 56 , ENODATA = 61 , ECOMM = 70 ,
  EOVERFLOW = 76 , EMSGSIZE = 90
}
 possible return values More...
 
enum  dioStates { DIO_OFF = 0 , DIO_ON = 1 , DIO_NOT_INITIALIZED = ENODEV , DIO_PROBLEM_OCCURED = ENODATA }
 digital input/output states More...
 
enum  aioData { ANA_DIO_RAW_CURRENT , ANA_DIO_RAW_AVERAGED , ANA_DIO_VOLTAGE }
 digital input/output module data More...
 

Functions

void initialization_error_handle (void)
 

Detailed Description

Defines and functions that are useful for all library files.

Author
panvicka
Date
2.1.2022

Enumeration Type Documentation

◆ aioData

enum aioData

digital input/output module data

Enumerator
ANA_DIO_RAW_CURRENT 

raw ADC/DAC value at this moment (for SMT32 12bit 0-4094)

ANA_DIO_RAW_AVERAGED 

raw ADC/DAC averaged value (for SMT32 12bit 0-4094)

ANA_DIO_VOLTAGE 

ADC/DAC value converted to voltage.

◆ dioStates

enum dioStates

digital input/output states

Enumerator
DIO_OFF 

input/output is in logical 0 state

DIO_ON 

input/output is in logical 1 state

DIO_NOT_INITIALIZED 

no information about the input/output state because it is not initialized

DIO_PROBLEM_OCCURED 

no information about the input/output state due to an error

◆ retStatus

enum retStatus

possible return values

Enumerator
EOK 

operation OK

EPERM 

Operation not permitted.

EIO 

IO error.

ENXIO 

No such device or address.

EACCES 

Permission denied.

EFAULT 

Bad address (pointer)

EBUSY 

Device busy.

ENODEV 

No such device.

EINVAL 

Invalid argument.

EBADRQC 

Invalid request code.

ENODATA 

No data.

ECOMM 

Communication error on send.

EOVERFLOW 

Value too large for defined data type.

EMSGSIZE 

Message too long.