代码拉取完成,页面将自动刷新
同步操作将从 redocCheng/rt_can_ymodem 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-04-29 redoc first version.
*/
#ifndef __CAN_YMODEM_H__
#define __CAN_YMODEM_H__
#include <rtthread.h>
#ifndef RT_CAN_YMODEM_DEVICE_SIZE
#define RT_CAN_YMODEM_DEVICE_SIZE 1100
#endif
#ifndef RT_CAN_YMODEM_PACK_SIZE_TX
#define RT_CAN_YMODEM_PACK_SIZE_TX 6
#endif
struct rt_can_ymodem_rx_fifo
{
/* software fifo */
rt_uint8_t *buffer;
rt_uint16_t put_index, get_index;
rt_bool_t is_full;
};
struct rt_can_ymodem_device
{
struct rt_device parent;
const struct rt_can_ymodem_ops *ops;
void *can_ymodem_rx;
};
typedef struct rt_can_ymodem_device rt_can_ymodem_t;
/**
* uart operators
*/
struct rt_can_ymodem_ops
{
int (*puts)(struct rt_can_ymodem_device *can_ymodem,
const void *buffer,
rt_size_t size);
};
void rt_can_ymodem_rx(struct rt_can_ymodem_device *can_ymodem, const void *buffer, rt_size_t size);
rt_err_t rt_hw_can_ymodem_register(struct rt_can_ymodem_device *can_ymodem,
const char *name,
rt_uint32_t flag,
void *data);
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。