Files
stm32-comm/SLP_OPR/myDrivers/w5500/loopback2.h
T
2026-03-31 13:27:23 +08:00

47 lines
1.0 KiB
C

/*
* loopback2.h
*
* Created on: Mar 25, 2026
* Author: 18896
*/
#ifndef LOOPBACK2_H_
#define LOOPBACK2_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include "wizchip_conf.h"
#include "modbusRtuMaster.h"
/* Loopback test debug message printout enable */
#if 0
#define _LOOPBACK_DEBUG_
#endif
/* DATA_BUF_SIZE define for Loopback example */
#ifndef DATA_BUF_SIZE
#define DATA_BUF_SIZE 2048
#endif
/************************/
/* Select LOOPBACK_MODE */
/************************/
#define LOOPBACK_MAIN_NOBLOCK 0
#define LOOPBACK_MODE LOOPBACK_MAIN_NOBLOCK
#if ((_WIZCHIP_ == 6100) || (_WIZCHIP_ == 6300))
int8_t set_loopback_mode_W6x00(uint8_t get_loopback_mode) ;
int8_t check_loopback_mode_W6x00();
#endif
extern uint16_t slmpTimeout;
void updateMyRtumST(rtumST myRtumSTs[20]);
int32_t loopback_udpc_omrfins(uint8_t sn, uint8_t *destip, uint16_t destport, uint16_t local_node, uint16_t *comm_cnt, _Bool *comm2);
#endif /* LOOPBACK2_H_ */