Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

lpmodem.h File Reference


Detailed Description

lpmodem driver header.

#include <linux/ioctl.h>

Include dependency graph for lpmodem.h:

Include dependency graph

Data Structures

struct  lpmodem_statistics
 lpmodem driver statistics. More...

struct  lpmodem_params
 lpmodem KISS parameters. More...


Defines

#define LPMODEM_MAXFLEN   400
 Maximum packet length, excluding CRC.


Enumerations

enum  KISS_CHARS {
  KISS_FEND = 0xc0,
  KISS_FESC = 0xdb,
  KISS_TFEND = 0xdc,
  KISS_TFESC = 0xdd
}
 KISS protocol special characters. More...

enum  KISS_CMD {
  KISS_CMD_DATA = 0,
  KISS_CMD_TXDELAY = 1,
  KISS_CMD_PPERSIST = 2,
  KISS_CMD_SLOTTIME = 3,
  KISS_CMD_TXTAIL = 4,
  KISS_CMD_FULLDUP = 5,
  KISS_CMD_SETHW = 6
}
 KISS protocol commands. More...

enum  LPMODEM_CTL {
  LPMODEM_GET_DCD = _IOR('L',0,unsigned char),
  LPMODEM_GET_PTT = _IOR('L',1,unsigned char),
  LPMODEM_SET_TXDELAY = _IOW('L',2,unsigned char),
  LPMODEM_SET_PPERSIST = _IOW('L',3,unsigned char),
  LPMODEM_SET_SLOTTIME = _IOW('L',4,unsigned char),
  LPMODEM_SET_TXTAIL = _IOW('L',5,unsigned char),
  LPMODEM_SET_FULLDUP = _IOW('L',6,unsigned char),
  LPMODEM_GET_STAT = _IOR('L',7,struct lpmodem_statistics),
  LPMODEM_GET_PARAMS = _IOR('L',8,struct lpmodem_params),
  LPMODEM_SET_PARAMS = _IOR('L',9,struct lpmodem_params),
  LPMODEM_GET_MSR = _IOR('L',20,plcMSR),
  LPMODEM_GET_REG = _IOR('L',21,st7538reg),
  LPMODEM_SET_REG = _IOR('L',22,st7538reg)
}
 lpmodem ioctl commands. More...


Enumeration Type Documentation

enum KISS_CHARS
 

KISS protocol special characters.

Enumeration values:
KISS_FEND  Frame End.
KISS_FESC  Frame Escape.
KISS_TFEND  Transposed Frame End.
KISS_TFESC  Transpoded Frame Escape.

enum KISS_CMD
 

KISS protocol commands.

Enumeration values:
KISS_CMD_DATA  The rest of the frame is data to be sent on the HDLC channel.
KISS_CMD_TXDELAY  The next byte is the transmitter keyup delay in 10 ms units.
KISS_CMD_PPERSIST  The next byte is the persistence parameter, p, scaled to the range 0 - 255.
KISS_CMD_SLOTTIME  The next byte is the slot interval in 10 ms units.
KISS_CMD_TXTAIL  The next byte is the time to hold up the TX after the FCS has been sent, in 10 ms units.
KISS_CMD_FULLDUP  The next byte is 0 for half duplex, nonzero for full duplex.
KISS_CMD_SETHW  Specific for each TNC.

enum LPMODEM_CTL
 

lpmodem ioctl commands.

Enumeration values:
LPMODEM_GET_DCD  Get the DCD state.
LPMODEM_GET_PTT  Get the ptt state.
LPMODEM_SET_TXDELAY  Set the transmitter keyup delay in 10 ms units.
LPMODEM_SET_PPERSIST  Set the p-persistence scaled to the range 0-255.
LPMODEM_SET_SLOTTIME  Set the slot interval in 10 ms units.
LPMODEM_SET_TXTAIL  Set the time to hold up the TX after the FCS has been sent, in 10 ms units.
LPMODEM_SET_FULLDUP  Set to zero for half duplex, nonzero for full duplex.
LPMODEM_GET_STAT  Get lpmodem statistics.
LPMODEM_GET_PARAMS  Set KISS lpmodem parameters.
LPMODEM_SET_PARAMS  Get KISS lpmodem parameters.
LPMODEM_GET_MSR  Get MSR register.
LPMODEM_GET_REG  Get ST7538 Register register.
LPMODEM_SET_REG  Set ST7538 Register register.


Generated on Sun Aug 21 21:28:45 2005 for PLC Modem/ABNT-14522 Library by doxygen 1.3.7