monoZ docs
MZ_common.h File Reference

monoZ Lib Common. More...

#include "stm32l4xx_hal.h"
#include "MZ_BoardCfg.h"
#include "MZ_tool_config.h"
#include "stddef.h"
#include "string.h"

Go to the source code of this file.

Macros

#define MZ_COMMON_H
 Define monoZ Common. More...
 
#define MZ_IFNULLGOCLEAN(X)   do{if(0 == X) goto clean;}while(0);
 monoZ If Null Go and Clean More...
 
#define MZ_IFNOTNULLGOCLEAN(X)   do{if(0 != X) goto clean;}while(0);
 monoZ If Not Null Go and Clean More...
 
#define MZ_IFRETNOTMZ_OKGOCLEAN(X)    do{_ret = X; if(MZ_OK != _ret)goto clean;}while(0);
 monoZ if not return MZ_OK Go and Clean More...
 
#define __INTERNAL   static
 [TODO] More...
 
#define __EXTERNAL
 [TODO] More...
 
#define MZ_VAR_NOINIT   __attribute__((section(".mz_RamBlock_noinit")))
 Defines the mz_RamBlock_noinit. More...
 
#define MZ_VAR_INIT   __attribute__((section(".mz_RamBlock_init")))
 Defines the mz_RamBlock_init. More...
 
#define MZ_VAR_CONST   __attribute__((section(".mz_const_section")))
 Defines monoZ constant variable. More...
 
#define MZ_FUN   __attribute__((section(".mz_FunctionBlock")))
 Defines the monoZ function. More...
 
#define MZ_VAR_CONFIG   __attribute__((section(".mz_config_table")))
 Defines the monoZ configuration table. More...
 

Typedefs

typedef void(* _mz_fp) (void *)
 
typedef _mz_fp mz_fn
 1 Byte data type More...
 
typedef char mzInt8
 1 Byte data type More...
 
typedef signed char mzSint8
 1 Byte data type More...
 
typedef unsigned char mzUint8
 1 Byte data type More...
 
typedef short int mzInt16
 2 Byte data type More...
 
typedef signed short int mzSint16
 2 Byte data type More...
 
typedef unsigned short int mzUint16
 2 Byte data type More...
 
typedef long int mzInt32
 4 Byte data type More...
 
typedef signed long int mzSint32
 4 Byte data type More...
 
typedef unsigned long int mzUint32
 4 Byte data type More...
 
typedef long long mzInt64
 8 Byte data type More...
 
typedef signed long long mzSint64
 8 Byte data type More...
 
typedef unsigned long long mzUint64
 8 Byte data type More...
 

Enumerations

enum  mzReg { MZ_DEREG , MZ_REG }
 monoZ Register and Deregister More...
 

Detailed Description

monoZ Lib Common.

Author
SKM
Version
V1.0
Date
Sep 15, 2020

Definition in file MZ_common.h.

Macro Definition Documentation

◆ MZ_COMMON_H

#define MZ_COMMON_H

Define monoZ Common.

Definition at line 11 of file MZ_common.h.

◆ MZ_IFNULLGOCLEAN

#define MZ_IFNULLGOCLEAN (   X)    do{if(0 == X) goto clean;}while(0);

monoZ If Null Go and Clean

Definition at line 16 of file MZ_common.h.

◆ MZ_IFNOTNULLGOCLEAN

#define MZ_IFNOTNULLGOCLEAN (   X)    do{if(0 != X) goto clean;}while(0);

monoZ If Not Null Go and Clean

Definition at line 17 of file MZ_common.h.

◆ MZ_IFRETNOTMZ_OKGOCLEAN

#define MZ_IFRETNOTMZ_OKGOCLEAN (   X)     do{_ret = X; if(MZ_OK != _ret)goto clean;}while(0);

monoZ if not return MZ_OK Go and Clean

Definition at line 20 of file MZ_common.h.

◆ __INTERNAL

#define __INTERNAL   static

[TODO]

Definition at line 22 of file MZ_common.h.

◆ __EXTERNAL

#define __EXTERNAL

[TODO]

Definition at line 23 of file MZ_common.h.

◆ MZ_VAR_NOINIT

#define MZ_VAR_NOINIT   __attribute__((section(".mz_RamBlock_noinit")))

Defines the mz_RamBlock_noinit.

Definition at line 130 of file MZ_common.h.

◆ MZ_VAR_INIT

#define MZ_VAR_INIT   __attribute__((section(".mz_RamBlock_init")))

Defines the mz_RamBlock_init.

Definition at line 131 of file MZ_common.h.

◆ MZ_VAR_CONST

#define MZ_VAR_CONST   __attribute__((section(".mz_const_section")))

Defines monoZ constant variable.

Definition at line 132 of file MZ_common.h.

◆ MZ_FUN

#define MZ_FUN   __attribute__((section(".mz_FunctionBlock")))

Defines the monoZ function.

Definition at line 133 of file MZ_common.h.

◆ MZ_VAR_CONFIG

#define MZ_VAR_CONFIG   __attribute__((section(".mz_config_table")))

Defines the monoZ configuration table.

Definition at line 134 of file MZ_common.h.

Typedef Documentation

◆ _mz_fp

typedef void(* _mz_fp) (void *)

Common reference function pointer

Definition at line 33 of file MZ_common.h.

◆ mz_fn

typedef _mz_fp mz_fn

1 Byte data type

mz_fn variable of type _mz_fp

Definition at line 39 of file MZ_common.h.

◆ mzInt8

typedef char mzInt8

1 Byte data type

mzInt8 variable of type char

Definition at line 45 of file MZ_common.h.

◆ mzSint8

typedef signed char mzSint8

1 Byte data type

mzSint8 variable of type signed char

Definition at line 51 of file MZ_common.h.

◆ mzUint8

typedef unsigned char mzUint8

1 Byte data type

mzUint8 variable of type unsigned char

Definition at line 57 of file MZ_common.h.

◆ mzInt16

typedef short int mzInt16

2 Byte data type

mzInt16 variable of type short int

Definition at line 64 of file MZ_common.h.

◆ mzSint16

typedef signed short int mzSint16

2 Byte data type

mzSint16 variable of type signed short int

Definition at line 70 of file MZ_common.h.

◆ mzUint16

typedef unsigned short int mzUint16

2 Byte data type

mzUint16 variable of type unsigned short int

Definition at line 76 of file MZ_common.h.

◆ mzInt32

typedef long int mzInt32

4 Byte data type

mzInt32 variable of type long int

Definition at line 83 of file MZ_common.h.

◆ mzSint32

typedef signed long int mzSint32

4 Byte data type

mzSint32 variable of type signed long int

Definition at line 89 of file MZ_common.h.

◆ mzUint32

typedef unsigned long int mzUint32

4 Byte data type

mzUint32 variable of type unsigned long int

Definition at line 95 of file MZ_common.h.

◆ mzInt64

typedef long long mzInt64

8 Byte data type

mzInt64 variable of type long long

Definition at line 103 of file MZ_common.h.

◆ mzSint64

typedef signed long long mzSint64

8 Byte data type

mzSint64 variable of type signed long long

Definition at line 109 of file MZ_common.h.

◆ mzUint64

typedef unsigned long long mzUint64

8 Byte data type

mzUint64 variable of type unsigned long long

Definition at line 116 of file MZ_common.h.

Enumeration Type Documentation

◆ mzReg

enum mzReg

monoZ Register and Deregister

Enumerator
MZ_DEREG 

monoZ Deregister

MZ_REG 

monoZ Register

Definition at line 122 of file MZ_common.h.