Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/net/rsm.c File Reference

#include <rsm.h>
#include <rdio.h>
#include <cubeos.h>
#include <stdio.h>
#include <ttyio.h>

Include dependency graph for rsm.c:

Go to the source code of this file.

Defines

#define RSM_OFF   0
#define RSM_IDLE   1
#define RSM_INFRAME1   2
#define RSM_INFRAME2   3
#define RSM_CHECKSUM1   4
#define RSM_CHECKSUM2   5
#define RSM_SOH   0xA5
#define RSM_PREHEADER   6

Functions

int RSM_init_rx ()
 prepares RSM for reception. More...

int RSM_init_tx ()
 initializes RSM for transmission. More...

int RSM_getframe (unsigned char *buffer)
 copy one RSM frame into "user space". More...

int RSM_send_frame (unsigned char *buffer)
 send one RSM frame. More...

void _RSM_doutchar (unsigned char c)
void _RSM_douthex (unsigned char c)
void RSM_process (unsigned char c)
void RSM_tty_rdioput_block (char byte)
 blocking output on radio TTY. More...

unsigned char * RSM_rxframe (unsigned char *frame)
 receive one RSM frame. More...

int RSM_deinitrx ()
 disables reception. More...

int RSM_deinittx ()
 disables transmission. More...

unsigned char * RSM_encode (unsigned char c)
 do media encoding for one byte. More...


Variables

char _RSM_buffer0 [RSM_FRAMELEN]
char _RSM_buffer1 [RSM_FRAMELEN]
unsigned char _RSM_state = 0
short _RSM_count
char RSM_new
char * _RSM_writebuf
char * RSM_getbuf
unsigned char _RSM_checksum
unsigned char _RSM_charcount
int RSM_good
int _RSM_bad
int _RSM_ugly
int _RSM_bytes
int _RSM_uglycount


Detailed Description

Definition in file rsm.c.


Define Documentation

#define RSM_CHECKSUM1   4
 

Definition at line 49 of file rsm.c.

#define RSM_CHECKSUM2   5
 

Definition at line 50 of file rsm.c.

#define RSM_IDLE   1
 

Definition at line 46 of file rsm.c.

Referenced by RSM_deinitrx, and RSM_init_rx.

#define RSM_INFRAME1   2
 

Definition at line 47 of file rsm.c.

#define RSM_INFRAME2   3
 

Definition at line 48 of file rsm.c.

#define RSM_OFF   0
 

Definition at line 45 of file rsm.c.

#define RSM_PREHEADER   6
 

Definition at line 55 of file rsm.c.

Referenced by RSM_send_frame.

#define RSM_SOH   0xA5
 

Definition at line 53 of file rsm.c.

Referenced by RSM_send_frame.


Function Documentation

void _RSM_doutchar unsigned char    c
 

Definition at line 217 of file rsm.c.

void _RSM_douthex unsigned char    c
 

Definition at line 220 of file rsm.c.

void RSM_process unsigned char    c
 

Referenced by RSM_init_rx.


Variable Documentation

int _RSM_bad
 

Definition at line 77 of file rsm.c.

Referenced by RSM_init_rx.

char _RSM_buffer0[RSM_FRAMELEN]
 

Definition at line 62 of file rsm.c.

Referenced by RSM_init_rx.

char _RSM_buffer1[RSM_FRAMELEN]
 

Definition at line 63 of file rsm.c.

Referenced by RSM_init_rx.

int _RSM_bytes
 

Definition at line 79 of file rsm.c.

Referenced by RSM_init_rx.

unsigned char _RSM_charcount
 

Definition at line 73 of file rsm.c.

Referenced by RSM_init_rx.

unsigned char _RSM_checksum
 

Definition at line 72 of file rsm.c.

short _RSM_count
 

Definition at line 68 of file rsm.c.

unsigned char _RSM_state = 0
 

Definition at line 66 of file rsm.c.

Referenced by RSM_deinitrx, and RSM_init_rx.

int _RSM_ugly
 

Definition at line 78 of file rsm.c.

Referenced by RSM_init_rx.

int _RSM_uglycount
 

Definition at line 80 of file rsm.c.

Referenced by RSM_init_rx.

char* _RSM_writebuf
 

Definition at line 70 of file rsm.c.

Referenced by RSM_init_rx.

char* RSM_getbuf
 

Definition at line 71 of file rsm.c.

Referenced by RSM_getframe, RSM_init_rx, and RSM_rxframe.

int RSM_good
 

Definition at line 76 of file rsm.c.

Referenced by RSM_init_rx.

char RSM_new
 

Definition at line 69 of file rsm.c.

Referenced by RSM_getframe, RSM_init_rx, and RSM_rxframe.


Generated on Thu Feb 20 15:39:00 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002