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... | |
BAL Communication Configs | |
| phStatus_t | phbalReg_RdScr01_Init (phbalReg_RdScr01_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, uint32_t dwInitVccmv, uint32_t dwInitClockFrequencykHz) |
| phStatus_t | phbalReg_ContactLAB_Init (phbalReg_ContactLAB_DataParams_t *pDataParams, uint16_t wSizeOfDataParams) |
| Initialise the BAL component. More... | |
| phStatus_t | phbalReg_Smartware_Init (phbalReg_Smartware_DataParams_t *pDataParams, uint16_t wSizeOfDataParams) |
| Initialise the BAL component. More... | |
| phStatus_t | phbalReg_RdScr2_Init (phbalReg_RdScr2_DataParams_t *pDataParams, uint16_t wSizeOfDataParams) |
| #define | PHBAL_REG_SERIALWIN_CONFIG_BITRATE (PH_CONFIG_CUSTOM_BEGIN + 0) |
| Configure communication speed. | |
| #define | PHBAL_REG_SERIALWIN_CONFIG_STOPBITS (PH_CONFIG_CUSTOM_BEGIN + 1) |
| Configure number of stop bits. | |
| #define | PHBAL_REG_SERIALWIN_CONFIG_DTR (PH_CONFIG_CUSTOM_BEGIN + 2) |
| Configure dtr line. | |
| #define | PHBAL_REG_SERIALWIN_CONFIG_RTS (PH_CONFIG_CUSTOM_BEGIN + 3) |
| Configure rts line. | |
| #define | PHBAL_REG_SERIALWIN_CONFIG_PARITY (PH_CONFIG_CUSTOM_BEGIN + 4) |
| Configure parity. | |
| #define | PHBAL_REG_SERIALWIN_CONFIG_FI (PH_CONFIG_CUSTOM_BEGIN + 7) |
| Configure FI. | |
| #define | PHBAL_REG_SERIALWIN_CONFIG_DI (PH_CONFIG_CUSTOM_BEGIN + 8) |
| Configure DI. | |
| #define | PHBAL_REG_SERIALWIN_CONFIG_TIMEOUT_MULTIPLIER_MS (PH_CONFIG_CUSTOM_BEGIN + 9) |
| Configure Timeout Multiplier. | |
| #define | PHBAL_REG_SERIALWIN_CONFIG_ADDITIONAL_RXDELAY_BYTES (PH_CONFIG_CUSTOM_BEGIN + 10) |
| Needed because WriteFile() sometimes returns too early. | |
| #define | PHBAL_REG_PCSCWIN_CONFIG_PROTOCOL (PH_CONFIG_CUSTOM_BEGIN + 0) |
| Used Protocol; e.g. More... | |
| #define | PHBAL_REG_PCSCWIN_CONFIG_SHARE (PH_CONFIG_CUSTOM_BEGIN + 1) |
| Used Access mode; e.g. More... | |
| #define | PHBAL_REG_PCSCWIN_CONFIG_USE_WARM_ATR (PH_CONFIG_CUSTOM_BEGIN + 2) |
| Define if the warm atr should used. More... | |
| #define | PHBAL_REG_PCSCWIN_CONFIG_CARD_STATE (PH_CONFIG_CUSTOM_BEGIN + 3) |
| Current state of the smart card in the reader. More... | |
| #define | PHBAL_REG_PCSCWIN_CONFIG_ACTIVE_PROTOCOL (PH_CONFIG_CUSTOM_BEGIN + 4) |
| Get the used Protocol; e.g. More... | |
| #define | PHBAL_REG_PCSCWIN_CONFIG_PEGODA2_MODE (PH_CONFIG_CUSTOM_BEGIN + 5) |
| Define if the Pegoda 2 Mode should used. More... | |
| #define | PHBAL_REG_MP300USB_CONFIG_EXCHANGE_DELAY_COUNT (PH_CONFIG_CUSTOM_BEGIN + 0) |
| An integer value to throttle USB comms speed. | |
| #define | PHBAL_REG_MP300USB_CONFIG_VENDOR_ID_FILTER (PH_CONFIG_CUSTOM_BEGIN + 1) |
| Filter for ventor ID used in GetPortList to filter USB devices. More... | |
| #define | PHBAL_REG_MP300USB_CONFIG_PRODUCT_ID_FILTER (PH_CONFIG_CUSTOM_BEGIN + 2) |
| Filter for Product ID used in GetPortList to filter USB devices. More... | |
| #define | PHBAL_REG_MP300USB_CONFIG_EXCHANGE_MODE (PH_CONFIG_CUSTOM_BEGIN + 3) |
| Exchange mode of USB (INTERRUPT or BULK) | |
| #define | PHBAL_REG_MULTISOCKET_CONFIG_TX_TIMEOUT (PH_CONFIG_CUSTOM_BEGIN + 0) |
| #define | PHBAL_REG_MULTISOCKET_CONFIG_RX_TIMEOUT (PH_CONFIG_CUSTOM_BEGIN + 1) |
| #define | PHBAL_REG_RDSCR01_CONFIG_BITRATE (PH_CONFIG_CUSTOM_BEGIN) |
| Configure communication speed. | |
| #define | PHBAL_REG_CONTACTLAB_ID 0x10U |
| ID for ContactLAB BAL component. | |
| #define | PHBAL_REG_CONTACTLAB_VERSION_SIZE 20 |
| #define | PHBAL_REG_CONTACTLAB_ERROR_MESSAGE_SIZE 1000 |
| #define | PHBAL_REG_SMARTWARE_ID 0x11U |
| ID for Smartware BAL component. | |
| #define | PHBAL_REG_SMARTWARE_MLOSCFG_BUFFERSIZE 316U |
| Size of internal Buffer to store struct. | |
| #define | PHBAL_REG_SMARTWARE_CARD_BUFFERSIZE 396U |
| Size of internal Buffer to store struct. | |
| #define | PHBAL_REG_RDSCR2_ID 0x13U |
| ID for SCR2 BAL component. | |
| #define | PHBAL_REG_RDSCR2_BITRATE_DEFAULT 9600 |
| #define | PHBAL_REG_RDSCR2_TIMEOUT_DEFAULT 1000 |
| #define | PHBAL_REG_RDSCR2_CONFIG_BITRATE (PH_CONFIG_CUSTOM_BEGIN) |
| Configure communication speed. | |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_MLOSCFG_INIT) (void *cfg) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_MLOSCFG_START) (void *cfg) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_MLOSCFG_END) (void *cfg) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_CARD_OPEN) (void *cardRef, uint8_t model, uint16_t card) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_CARD_CLOSE) (void *cardRef) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_CARD_RESET) (void *cardRef) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_CARD_RESET_WARM) (void *cardRef) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_CARD_OFF) (void *cardRef) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_CARD_SET_VCC) (void *cardRef, uint16_t vcc) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_CARD_SET_CLK) (void *cardRef, uint64_t clk) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_CARD_SET_FD) (void *cardRef, uint8_t fi, uint8_t di) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_CARD_SETGET_CONFIG) (void *cardRef, void *card_CfgXRef) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_CARD_EXCHANGE) (void *cardRef, uint32_t mode, uint8_t *txBuf, uint32_t txBufLen, uint8_t *rxBuf, uint32_t *rxBufLen) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_CARDTM_INIT) (void *cfg) |
| typedef uint32_t(__cdecl * | PHBAL_REG_SMARTWARE_CMT_NEW) (void **driverHandle, void *card) |
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. | |
| #define | PHBAL_REG_MP300USB_VALUE_EXCHANGEMODE_INTERRUPT 0x0000U |
| Interrupt transfer kBit/s. | |
| #define | PHBAL_REG_MP300USB_VALUE_EXCHANGEMODE_BULK 0x0001U |
| Bulk transfer kBit/s. | |
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.
| #define PHBAL_REG_MP300USB_CONFIG_VENDOR_ID_FILTER (PH_CONFIG_CUSTOM_BEGIN + 1) |
Filter for ventor ID used in GetPortList to filter USB devices.
If Vendor ID and Product ID is set to zero all devices are listed
| #define PHBAL_REG_MP300USB_CONFIG_PRODUCT_ID_FILTER (PH_CONFIG_CUSTOM_BEGIN + 2) |
Filter for Product ID used in GetPortList to filter USB devices.
If Vendor ID and Product ID is set to zero all devices are listed
| 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. |
| phStatus_t phbalReg_RdScr01_Init | ( | phbalReg_RdScr01_DataParams_t * | pDataParams, |
| uint16_t | wSizeOfDataParams, | ||
| uint32_t | dwInitVccmv, | ||
| uint32_t | dwInitClockFrequencykHz | ||
| ) |
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wSizeOfDataParams | [In] Specifies the size of the data parameter structure. |
| [in] | dwInitVccmv | [In] Specifies the voltage that should be appled when open. |
| [in] | dwInitClockFrequencykHz | [In] Specifies the clock frequency that should be appled when open. |
| phStatus_t phbalReg_ContactLAB_Init | ( | phbalReg_ContactLAB_DataParams_t * | pDataParams, |
| uint16_t | wSizeOfDataParams | ||
| ) |
Initialise the BAL component.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | Parameter structure size is invalid. |
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wSizeOfDataParams | [In] Specifies the size of the data parameter structure. |
| phStatus_t phbalReg_Smartware_Init | ( | phbalReg_Smartware_DataParams_t * | pDataParams, |
| uint16_t | wSizeOfDataParams | ||
| ) |
Initialise the BAL component.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | Parameter structure size is invalid. |
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wSizeOfDataParams | [In] Specifies the size of the data parameter structure. |
| phStatus_t phbalReg_RdScr2_Init | ( | phbalReg_RdScr2_DataParams_t * | pDataParams, |
| uint16_t | wSizeOfDataParams | ||
| ) |
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wSizeOfDataParams | [In] Specifies the size of the data parameter structure. |