V104
Appendix F: Software Glossary
F-7
Reference: s0_echo.c, s1_echo.c, s1_0.c
int putser0(unsigned char ch, COM *c);
ser0.h
int putser1(unsigned char ch, COM *c);
ser1.h
int putser_scc(unsigned char ch, COM *c);
scc.h
Output 1 character to serial port. Character will be sent to serial output with interrupt isr.
Var: ch – character to output
c – pointer to serial port structure
Reference: s0_echo.c, s1_echo.c, s1_0.c
int putsers0(unsigned char *str, COM *c);
ser0.h
int putsers1(unsigned char *str, COM *c);
ser1.h
int putsers_scc(unsigned char ch, COM *c);
scc.h
Outputs a character string to serial port. Character will be sent to serial output with interrupt isr.
Var: str – pointer to output character string
c – pointer to serial port structure
Reference: ser1_sin.c
int serhit0(COM *c);
ser0.h
int serhit1(COM *c);
ser1.h
int serhit_scc(COM *c);
scc.h
Checks input buffer for new input characters. Returns 1 if new character is in input buffer, else 0.
Var: c – pointer to serial port structure
Reference: s0_echo.c, s1_echo.c, s1_0.c
unsigned char getser0(COM *c);
ser0.h
unsigned char getser1(COM *c);
ser1.h
unsigned char getser_scc(COM *c);
scc.h
Retrieves 1 character from the input buffer. Assumes that serhit routine was evaluated.
Var: c – pointer to serial port structure
Reference: s0_echo.c, s1_echo.c, s1_0.c
int getsers0(COM *c, int len, unsigned char *str);
ser0.h
int getsers1(COM *c, int len, unsigned char *str);
ser1.h
int getsers_scc(COM *c, int len, unsigned char *str);
scc.h