|
IPMCSDB Driver Documentation |
![]() |
Include dependency graph for ipmcsdb.h:

Typedefs | |
| typedef IpmCsdbDescriptor * | IpmCsdbHdl |
| Handle for accessing the IPM422 module. | |
Enumerations | |
| enum | IpmCsdbBitRate { IPMCSDB_12_5_KBIT = 0x13F, IPMCSDB_50_KBIT = 0x04F } |
| Bit rate constants. More... | |
| enum | IpmCsdbConfigOptions { IPMCSDB_CFG_DISABLE, IPMCSDB_CFG_ENABLE, IPMCSDB_CFG_NO_PARITY, IPMCSDB_CFG_EVEN_PARITY, IPMCSDB_CFG_ODD_PARITY, IPMCSDB_CFG_7_BIT, IPMCSDB_CFG_8_BIT, IPMCSDB_CFG_1_STOP_BIT, IPMCSDB_CFG_2_STOP_BIT, IPMCSDB_CFG_TX_OUT_ENABLE, IPMCSDB_CFG_TX_OUT_DISABLE, IPMCSDB_CFG_TX_OUT_AUTO, IPMCSDB_CFG_EXTERNAL, IPMCSDB_CFG_LOOPBACK, IPMCSDB_INT_DISABLE, IPMCSDB_INT_ENABLE } |
| Channel Configuration Options. More... | |
| enum | |
Functions | |
| IpmCsdbHdl | ipmCsdb_open (IpCarrierHdl ipCarrierHdl, int ipSlotNo, void(*intHandlerFunc)()) |
| Opens access to a Max Technologies 422/CSDB IPM422 module. | |
| void | ipmCsdb_close (IpmCsdbHdl ipModuleHdl) |
| Closes access to the IP module and releases associated resources. | |
| void | ipmCsdb_sendNow (IpmCsdbHdl ipModuleHdl, int channel, uint8_t dataByte) |
| Sends a CSDB word immediately. | |
| void | ipmCsdb_sendScheduled (IpmCsdbHdl ipModuleHdl, int channel, uint8_t dataByte, uint16_t timeTag) |
| Sends a CSDB word time scheduled. | |
| void | ipmCsdb_txEnable (IpmCsdbHdl ipModuleHdl, int channel) |
| Enables transmitter channel. | |
| void | ipmCsdb_txDisable (IpmCsdbHdl ipModuleHdl, int channel) |
| Disables transmitter. | |
| bool | ipmCsdb_txIsEnabled (IpmCsdbHdl ipModuleHdl, int channel) |
| Returns enable status of transmitter channel. | |
| bool | ipmCsdb_txIsFull (IpmCsdbHdl ipModuleHdl, int channel) |
| Checks if transmitter is almost full. | |
| bool | ipmCsdb_txIsOverflown (IpmCsdbHdl ipModuleHdl, int channel) |
| Returns buffer overflow status of transmitter and clears overflow condition. | |
| void | ipmCsdb_txIntEnable (IpmCsdbHdl ipModuleHdl, int channel) |
| Enables transmit interrupt for a transmitter channel. | |
| void | ipmCsdb_txIntDisable (IpmCsdbHdl ipModuleHdl, int channel) |
| Disables transmit interrupt for a transmitter channel. | |
| bool | ipmCsdb_txIntIsEnabled (IpmCsdbHdl ipModuleHdl, int channel) |
| Returns interupt enable status of a transmitter channel. | |
| bool | ipmCsdb_receiveStamped (IpmCsdbHdl ipModuleHdl, int channel, uint8_t *csdbWordPtr, uint16_t *timeTagPtr) |
| Retrieves a time-stamped CSDB word from receive buffer. | |
| bool | ipmCsdb_receive (IpmCsdbHdl ipModuleHdl, int channel, uint8_t *csdbWordPtr) |
| Retrieves an CSDB word from receive buffer. | |
| void | ipmCsdb_rxEnable (IpmCsdbHdl ipModuleHdl, int channel) |
| Enables receiver. | |
| void | ipmCsdb_rxDisable (IpmCsdbHdl ipModuleHdl, int channel) |
| Disables receiver. | |
| bool | ipmCsdb_rxIsEnabled (IpmCsdbHdl ipModuleHdl, int channel) |
| Returns enable status of receiver. | |
| bool | ipmCsdb_rxIsAvail (IpmCsdbHdl ipModuleHdl, int channel) |
| Checks if receiver has data. | |
| bool | ipmCsdb_rxIsOverflown (IpmCsdbHdl ipModuleHdl, int channel) |
| Returns buffer overflow status of receiver. | |
| void | ipmCsdb_rxIntEnable (IpmCsdbHdl ipModuleHdl, int channel) |
| Enables receive interrupt for a receiver channel. | |
| void | ipmCsdb_rxIntDisable (IpmCsdbHdl ipModuleHdl, int channel) |
| Disables receive interrupt for a receiver channel. | |
| bool | ipmCsdb_rxIntIsEnabled (IpmCsdbHdl ipModuleHdl, int channel) |
| Returns interrupt enable status for a receiver channel. | |
| int | ipmCsdb_getTxChannels (IpmCsdbHdl ipModuleHdl) |
| Returns the number of TX channels for this module. | |
| int | ipmCsdb_getRxChannels (IpmCsdbHdl ipModuleHdl) |
| Returns the number of RX channels for this module. | |
| uint32_t | ipmCsdb_getTimer (IpmCsdbHdl ipModuleHdl) |
| Read the main timer register. | |
| void | ipmCsdb_rxSetRate (IpmCsdbHdl ipModuleHdl, int channel, IpmCsdbBitRate bitRate) |
| Set receiver channel baud rate register. | |
| void | ipmCsdb_txSetRate (IpmCsdbHdl ipModuleHdl, int channel, IpmCsdbBitRate bitRate) |
| Set transmitter channel baud rate register. | |
| void | ipmCsdb_setTxEmptyThreshold (IpmCsdbHdl ipModuleHdl, uint16_t value) |
| Sets the transmitter FIFO almost empty threshold value. | |
| void | ipmCsdb_setTxFullThreshold (IpmCsdbHdl ipModuleHdl, uint16_t value) |
| Sets the transmitter FIFO almost full threshold value. | |
| void | ipmCsdb_setRxFullThreshold (IpmCsdbHdl ipModuleHdl, uint16_t value) |
| Sets the receiver FIFO almost full threshold value. | |
| void | ipmCsdb_setRxAgingTimeout (IpmCsdbHdl ipModuleHdl, uint16_t value) |
| Sets the receiver FIFO aging time-out value. | |
| void | ipmCsdb_rxConfig (IpmCsdbHdl ipModuleHdl, int channel, IpmCsdbConfigOptions option) |
| Configures receiver channel. | |
| void | ipmCsdb_txConfig (IpmCsdbHdl ipModuleHdl, int channel, IpmCsdbConfigOptions option) |
| Configures transmitter channel. | |
|
|
Handle for accessing the IPM422 module. The handle is returned by the open function. |
|
|
Bit rate constants.
|
|
|
||||||||||||||||
|
Opens access to a Max Technologies 422/CSDB IPM422 module.
|
|
|
Closes access to the IP module and releases associated resources.
|
|
||||||||||||||||
|
Sends a CSDB word immediately. This function does not check if there is space in the transmit FIFO. Use the function ipmCsdb_txIsFull to check the FIFO status.
|
|
||||||||||||||||||||
|
Sends a CSDB word time scheduled. This function does not check if there is space in the transmit FIFO. Use the function ipmCsdb_txIsFull to check the FIFO status.
|
|
||||||||||||
|
Enables transmitter channel.
|
|
||||||||||||
|
Disables transmitter.
|
|
||||||||||||
|
Returns enable status of transmitter channel.
|
|
||||||||||||
|
Checks if transmitter is almost full. Almost full is a configurable threshold value.
|
|
||||||||||||
|
Returns buffer overflow status of transmitter and clears overflow condition.
|
|
||||||||||||
|
Enables transmit interrupt for a transmitter channel.
|
|
||||||||||||
|
Disables transmit interrupt for a transmitter channel.
|
|
||||||||||||
|
Returns interupt enable status of a transmitter channel.
|
|
||||||||||||||||||||
|
Retrieves a time-stamped CSDB word from receive buffer. This function does not check if there is data available in the receive FIFO. Use the function ipmCsdb_rxIsAvail to check the FIFO status. To check if there are receive errors use ipmCsdb_rxIsOverflown.
|
|
||||||||||||||||
|
Retrieves an CSDB word from receive buffer. To check if there are receive errors use ipmCsdb_rxIsOverflown and ipmCsdb_rxIsError.
|
|
||||||||||||
|
Enables receiver.
|
|
||||||||||||
|
Disables receiver.
|
|
||||||||||||
|
Returns enable status of receiver.
|
|
||||||||||||
|
Checks if receiver has data.
|
|
||||||||||||
|
Returns buffer overflow status of receiver. This function call clears the error condition.
|
|
||||||||||||
|
Enables receive interrupt for a receiver channel.
|
|
||||||||||||
|
Disables receive interrupt for a receiver channel.
|
|
||||||||||||
|
Returns interrupt enable status for a receiver channel.
|
|
|
Returns the number of TX channels for this module.
|
|
|
Returns the number of RX channels for this module.
|
|
|
Read the main timer register.
|
|
||||||||||||||||
|
Set receiver channel baud rate register.
|
|
||||||||||||||||
|
Set transmitter channel baud rate register.
|
|
||||||||||||
|
Sets the transmitter FIFO almost empty threshold value.
|
|
||||||||||||
|
Sets the transmitter FIFO almost full threshold value.
|
|
||||||||||||
|
Sets the receiver FIFO almost full threshold value.
|
|
||||||||||||
|
Sets the receiver FIFO aging time-out value.
|
|
||||||||||||||||
|
Configures receiver channel.
|
|
||||||||||||||||
|
Configures transmitter channel.
|
|
Developed by FOCUS Software Engineering Pty Ltd, Australia.
<www.focus-sw.com> Last updated: 28 Apr 2003 |