/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-05-16     lijian       the first version
 */
#ifndef APPLICATIONS_MODBUS_DATU_H_
#define APPLICATIONS_MODBUS_DATU_H_

#include <rtthread.h>
#include <drv_common.h>
#include <rtdevice.h>
#include <rtthread.h>
#include <rtdevice.h>
#include <stdint.h>
#include <rs485.h>
#include <inout.h>
#include <adc.h>

typedef struct
{
    rt_uint8_t send_data;//发送数据
    rt_uint8_t log; //log
    rt_uint8_t toggle_led;
} DATU_t;

void datu_init();
void set_DATU_log(rt_uint8_t log);
rt_uint8_t get_DATU_toggle_led();

#endif /* APPLICATIONS_MODBUS_DATU_H_ */
