RS232 BAL (Windows) More...

Data Structures | |
| struct | phbalReg_SerialWin_DataParams_t |
| Serial (Windows) BAL parameter structure. More... | |
Macros | |
| #define | PHBAL_REG_SERIALWIN_ID 0x01U |
| ID for Serial BAL component (Win32) | |
Functions | |
| phStatus_t | phbalReg_SerialWin_Init (phbalReg_SerialWin_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, uint16_t wEnumBufSize, uint8_t *pEnumBuffer) |
| Initialise the RS232 BAL component. More... | |
Option to supress checks after ReadFile is called. | |
| #define | PHBAL_REG_SERIALWIN_SUPRESS_CHECKS 0x0080 |
| Option to supress checks after ReadFile is called. More... | |
BAL Configuration Values | |
| #define | PHBAL_REG_SERIALWIN_VALUE_BITRATE_9600 0x0000U |
| Serial bitrate as 9600 kBit/s. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_BITRATE_19200 0x0001U |
| Serial bitrate as 19200 kBit/s. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_BITRATE_38400 0x0002U |
| Serial bitrate as 38400 kBit/s. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_BITRATE_57600 0x0003U |
| Serial bitrate as 57600 kBit/s. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_BITRATE_115200 0x0004U |
| Serial bitrate as 115200 kBit/s. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_BITRATE_230400 0x0005U |
| Serial bitrate as 230400 kBit/s. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_BITRATE_460800 0x0006U |
| Serial bitrate as 460800 kBit/s. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_STOPBITS_ONE 0x0000U |
| One stopbit. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_STOPBITS_ONE5 0x0001U |
| One and a half stopbit. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_STOPBITS_TWO 0x0002U |
| Two stopbit. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_DTR_LOW 0x0000U |
| DTR Signal low. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_DTR_HIGH 0x0001U |
| DTR Signal high. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_RTS_LOW 0x0000U |
| RTS Signal low. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_RTS_HIGH 0x0001U |
| RTS Signal high. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_PARITY_NONE 0x0000U |
| Parity as None. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_PARITY_ODD 0x0001U |
| Parity as ODD. | |
| #define | PHBAL_REG_SERIALWIN_VALUE_PARITY_EVEN 0x0002U |
| Parity as EVEN. | |
RS232 BAL (Windows)
Serial-Line (COM-Port) interface for Windows.
| #define PHBAL_REG_SERIALWIN_SUPRESS_CHECKS 0x0080 |
Option to supress checks after ReadFile is called.
| #define PHBAL_REG_PCSCWIN_CONFIG_PROTOCOL (PH_CONFIG_CUSTOM_BEGIN + 0) |
Used Protocol; e.g.
| #define PHBAL_REG_PCSCWIN_CONFIG_SHARE (PH_CONFIG_CUSTOM_BEGIN + 1) |
Used Access mode; e.g.
| #define PHBAL_REG_PCSCWIN_CONFIG_USE_WARM_ATR (PH_CONFIG_CUSTOM_BEGIN + 2) |
Define if the warm atr should used.
Values: PH_ON, PH_OFF.
| #define PHBAL_REG_PCSCWIN_CONFIG_CARD_STATE (PH_CONFIG_CUSTOM_BEGIN + 3) |
Current state of the smart card in the reader.
See SCardStatus
| #define PHBAL_REG_PCSCWIN_CONFIG_ACTIVE_PROTOCOL (PH_CONFIG_CUSTOM_BEGIN + 4) |
Get the used Protocol; e.g.
| #define PHBAL_REG_PCSCWIN_CONFIG_PEGODA2_MODE (PH_CONFIG_CUSTOM_BEGIN + 5) |
Define if the Pegoda 2 Mode should used.
Values: PH_ON, PH_OFF.
| phStatus_t phbalReg_SerialWin_Init | ( | phbalReg_SerialWin_DataParams_t * | pDataParams, |
| uint16_t | wSizeOfDataParams, | ||
| uint16_t | wEnumBufSize, | ||
| uint8_t * | pEnumBuffer | ||
| ) |
Initialise the RS232 BAL component.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | Parameter structure size is invalid. |
| PH_ERR_INVALID_PARAMETER | wEnumBufSize is invalid. |
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wSizeOfDataParams | [In] Specifies the size of the data parameter structure. |
| [in] | wEnumBufSize | [In] Size of the enumeration buffer. Maximum possible size is 255 bytes. |
| [in] | pEnumBuffer | [In] Pointer to the enumeration buffer for the GetPortList() function. |