language = "C"
include_guard = "MBUS_FFI_H"
pragma_once = true
autogen_warning = "/* Auto-generated by cbindgen - DO NOT EDIT */"
tab_width = 4
sys_includes = ["stdint.h", "stdbool.h"]
no_includes = true

after_includes = """
typedef struct MbusCoils MbusCoils;
typedef struct MbusDiscreteInputs MbusDiscreteInputs;
typedef struct MbusFifoQueue MbusFifoQueue;
typedef struct MbusRegisters MbusRegisters;
"""

[parse]
parse_deps = false

[export]
item_types = ["functions", "globals", "typedefs", "opaque", "structs", "enums", "unions", "constants"]
exclude = ["MbusCoils", "MbusDiscreteInputs", "MbusFifoQueue", "MbusRegisters"]

[struct]

[defines]
'feature = "c"' = "MBUS_FEATURE_C"
'feature = "coils"' = "MBUS_FEATURE_COILS"
'feature = "registers"' = "MBUS_FEATURE_REGISTERS"
'feature = "discrete-inputs"' = "MBUS_FEATURE_DISCRETE_INPUTS"
'feature = "fifo"' = "MBUS_FEATURE_FIFO"
'feature = "file-record"' = "MBUS_FEATURE_FILE_RECORD"
'feature = "diagnostics"' = "MBUS_FEATURE_DIAGNOSTICS"
'target_arch = "wasm32"' = "MBUS_TARGET_WASM32"
'cbindgen' = "CBINDGEN"
