modbus_params.c 751 B

123456789101112131415161718192021
  1. /*
  2. * SPDX-FileCopyrightText: 2016-2021 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /*=====================================================================================
  7. * Description:
  8. * C file to define parameter storage instances
  9. *====================================================================================*/
  10. #include <stdint.h>
  11. #include "modbus_params.h"
  12. // Here are the user defined instances for device parameters packed by 1 byte
  13. // These are keep the values that can be accessed from Modbus master
  14. holding_reg_params_t holding_reg_params = { 0 };
  15. input_reg_params_t input_reg_params = { 0 };
  16. coil_reg_params_t coil_reg_params = { 0 };
  17. discrete_reg_params_t discrete_reg_params = { 0 };