#include <st7538.h>
Include dependency graph for plcmodem.h:

This graph shows which files directly or indirectly include this file:

Typedefs | |
| typedef int | plcError |
| Error code. | |
| typedef void * | plcHandle |
| Handle for a PLC device. | |
| typedef unsigned long | plcMSR |
| plcmodem MSR | |
Enumerations | |
| enum | PLC_MSR_BITS { PLC_MSR_CLRT = 0x000008L, PLC_MSR_RXD = 0x000010L, PLC_MSR_RESET_ = 0x404040L, PLC_MSR_MCLK = 0x000080L, PLC_MSR_TOUT = 0x000800L, PLC_MSR_REGOK_ = 0x001000L, PLC_MSR_PG = 0x008000L, PLC_MSR_ZCOUT = 0x080000L, PLC_MSR_BU = 0x100000L, PLC_MSR_CD_PD = 0x800000L } |
| Plcmodem Modem Status Register bits. More... | |
Functions | |
| plcError | plcInitialize (const char *device, plcHandle *handle) |
| Initializes a PLC modem device. | |
| plcError | plcReadRegister (plcHandle handle, st7538reg *reg) |
| Reads PLC modem register. | |
| plcError | plcWriteRegister (plcHandle handle, st7538reg reg) |
| Writes PLC modem register. | |
| plcError | plcWrite (plcHandle handle, const char *data, int n) |
| Sends data through PLC modem. | |
| plcError | plcRead (plcHandle handle, char *data, int size, int *n) |
| Receives data from PLC modem. | |
| plcError | plcReadMSR (plcHandle handle, plcMSR *msr) |
| Reads the Modem Status Register of PLC device. | |
| plcError | plcFinalize (plcHandle handle) |
| Finalizes a PLC modem device. | |
| plcError | plcSendBreak (plcHandle handle, int duration) |
| Puts the communitaion line in break state. | |
|
|
Plcmodem Modem Status Register bits.
|
|
|
Finalizes a PLC modem device.
|
|
||||||||||||
|
Initializes a PLC modem device.
|
|
||||||||||||||||||||
|
Receives data from PLC modem.
|
|
||||||||||||
|
Reads the Modem Status Register of PLC device.
|
|
||||||||||||
|
Reads PLC modem register.
|
|
||||||||||||
|
Puts the communitaion line in break state.
|
|
||||||||||||||||
|
Sends data through PLC modem.
|
|
||||||||||||
|
Writes PLC modem register.
|
1.3.7