Code Search for Developers
 
 
  

xmodem.h from Make Controller at Krugle


Show xmodem.h syntax highlighted

//*----------------------------------------------------------------------------
//*         ATMEL Microcontroller Software Support  -  ROUSSET  -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name           : init.c
//* Object              : Low level initialisations written in C
//* Creation            : ODi   08/12/2003
//*
//*----------------------------------------------------------------------------
typedef unsigned char  uchar;
typedef unsigned short ushort;
typedef unsigned long  ulong;

typedef struct XMODEM
{
	// Public Methods:
	int (*AT91F_XMD_Xup)(char *pData, unsigned int length);
	int (*AT91F_XMD_Xdown)(char *pData, unsigned int length, unsigned int loopsPerSecond);
} XMODEM, *P_XMODEM;

P_XMODEM XMODEM_Open(P_XMODEM pXmodem,CFCPipeUSART *pUsart);

char gotachar(char *buf);
void putcharX(char data);
char getcharX();
ushort getbytes(char *pData, unsigned int length);
int putPacket(uchar *tmppkt, uchar sno);
int getPacket(char *pData, uchar sno);
int Xup(char *pData, unsigned int length);
int Xdown(char *pData, unsigned int length, unsigned int loopsPerSecond);






See more files for this project here

Make Controller

The Make Controller is an open microcontroller platform for Makers of all kinds, by MakingThings. This project maintains the official firmware for the board and source for the software tools used with the board.

Project homepage: http://sourceforge.net/projects/makingthings
Programming language(s): C,C#,C++
License: other

  FCPipe.cpp
  FCPipe.h
  FCPipeUSB.cpp
  FCPipeUSB.h
  FC_Error.h
  SAM-BA.dll
  SAMBADLL.cpp
  SAMBADLL.h
  timer.cpp
  timer.h
  xmodem.cpp
  xmodem.h