代码搜索:XModem
找到约 707 项符合「XModem」的源代码
代码结果 707
www.eeworm.com/read/259282/11810018
c xmodem.c
#include "xmodem.h"
/* 读取单个数据包 */
/* 返回0表示读取数据包成功 */
/* 返回1表示数据包不完整 */
/* 返回2表示数据包检验和出错 */
static
int RecFrame(struct Frame* oneFrame)
{
int returnVal; // 返回的值
int i;
one
www.eeworm.com/read/259282/11810023
h xmodem.h
/* Xmodem的控制字符 */
#define SOH 0x01
#define EOT 0x04
#define ACK 0x06
#define NAK 0x15
#define CAN 0x18
/* 协议的常量设置 */
#define BLOCK_SIZE 128
#define ONE_SECOND 1000000 // 延迟的时间
/* 数据包格式的定
www.eeworm.com/read/156282/11814834
c xmodem.c
static unsigned char xmodem_buff[128+4];
static unsigned char xmodem_block_number;
static int xmodem_index = -1;
static int get_xmodem_frame(void)
{
TIMER timeout;
int index;
int c;
xm
www.eeworm.com/read/345314/11821841
c xmodem.c
/*
Copyright 2001, 2002 Georges Menie (www.menie.org)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as publ
www.eeworm.com/read/154660/11939621
c xmodem.c
/*-------------------------------------------------------------------------
* Filename: xmodem.c
* Version: $Id: xmodem.c,v 1.2 2002/01/06 19:02:29 erikm Exp $
* Copyright: Copyright
www.eeworm.com/read/154113/11988928
c xmodem.c
#include "XMODEM.h"
//#include "../inc/44blib.h"
#include "uart.h"
static char blockBuf[1024];
/******************** WriteByte **********************/
void WriteByte(char cc)
{
put_char(0,cc);
}
www.eeworm.com/read/154113/11988936
h xmodem.h
#ifndef __XMODEM_H__
#define __XMODEM_H__
#define SOH 0x01
#define STX 0x02
#define EOT 0x04
#define ACK 0x06
#define BS 0x08
#define NAK 0x15
#define CAN 0x18
#define SUB 0x1a
#define
www.eeworm.com/read/154113/11988960
o xmodem.o
www.eeworm.com/read/154085/11990353
c xmodem.c
#include "xmodem.h"
/* XMODEM parameters */
#define BLOCK_SIZE 128 /* size of transmit blocks */
#define RETRIES 20 /* maximum number of RETRIES */
/* Line control codes */
#define SOH 0x01 /* sta
www.eeworm.com/read/154085/11990357
h xmodem.h
/*
* xmodem.h
*
*/
#include
#include "Target/44blib.h"
#include "Target/def.h"
/* returns the number of bytes transferred */
U32 xmodem_receive(char *dest);