Skip to content

File computation_defs.h

FileList > computation_defs > computation_defs.h

Go to the source code of this file

Common definitions for computation objects. More...

  • #include "tang_defs.h"
  • #include "stdlib.h"

Macros

Type Name
define COMP_DEFS_COMPUTE_FAIL (1u)
We use bit 0 to indicate a fail. Specific failures encoded in higher bits.
define COMP_DEFS_COMPUTE_SUCCESS (0u)
Success is a 0. That lets us use hight bits for computation specific codes.
define COMP_DEFS_CONFIG_FAIL (1u)
We use bit 0 to indicate a fail. Specific failures encoded in higher bits.
define COMP_DEFS_CONFIG_SUCCESS (0u)
Success is a 0. That lets us use hight bits for computation specific codes.
define COMP_STATUS_BLDR (FLAG, HIGH_BITS) ((FLAG) \| (HIGH\_BITS))
A function like macro for building bitfield flags.

Detailed Description

Author:

Joe Starr

Macro Definition Documentation

define COMP_DEFS_COMPUTE_FAIL

We use bit 0 to indicate a fail. Specific failures encoded in higher bits.

#define COMP_DEFS_COMPUTE_FAIL `(1u)`


define COMP_DEFS_COMPUTE_SUCCESS

Success is a 0. That lets us use hight bits for computation specific codes.

#define COMP_DEFS_COMPUTE_SUCCESS `(0u)`


define COMP_DEFS_CONFIG_FAIL

We use bit 0 to indicate a fail. Specific failures encoded in higher bits.

#define COMP_DEFS_CONFIG_FAIL `(1u)`


define COMP_DEFS_CONFIG_SUCCESS

Success is a 0. That lets us use hight bits for computation specific codes.

#define COMP_DEFS_CONFIG_SUCCESS `(0u)`


define COMP_STATUS_BLDR

A function like macro for building bitfield flags.

#define COMP_STATUS_BLDR (
    FLAG,
    HIGH_BITS
) `((FLAG) | (HIGH_BITS))`



The documentation for this class was generated from the following file source/defs/computation_defs/computation_defs.h