mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
21 lines
591 B
C
21 lines
591 B
C
/*
|
|
* SPDX-FileCopyrightText: 2016-2021 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
// Stack callback functions prototypes
|
|
|
|
#ifndef _ESP_MODBUS_CALLBACKS_H_
|
|
#define _ESP_MODBUS_CALLBACKS_H_
|
|
|
|
#include "mb.h"
|
|
#include "mb_m.h"
|
|
|
|
typedef eMBErrorCode (*reg_input_cb)(UCHAR*, USHORT, USHORT);
|
|
typedef eMBErrorCode (*reg_holding_cb)(UCHAR*, USHORT, USHORT, eMBRegisterMode);
|
|
typedef eMBErrorCode (*reg_coils_cb)(UCHAR*, USHORT, USHORT, eMBRegisterMode);
|
|
typedef eMBErrorCode (*reg_discrete_cb)(UCHAR*, USHORT, USHORT);
|
|
|
|
#endif /* _ESP_MODBUS_CALLBACKS_H_ */
|