📄 sci_atom.h
字号:
void sci_atom_clock_start(ULONG sci_id);/****************************************************************************** Name: sci_atom_is_card_present**** Purpose: This checks the state of the detect line and the active** polarity of the card detect line, to determine if a card** is present in the reader.**** Parameters: sci_id: zero-based number to identify smart card controller**** Returns: 0: card is not present** 1: card is present****************************************************************************/INT sci_atom_is_card_present(ULONG sci_id);/****************************************************************************** Name: sci_atom_is_HW_activated**** Purpose: This determines if the SCI hardware is activated.**** Parameters: sci_id: zero-based number to identify smart card controller**** Returns: 0: hardware is not actived** 1: hardware is actived*****************************************************************************/INT sci_atom_is_HW_activated(ULONG sci_id);/******************************************************************************* Function: sci_atom_deactivate**** Purpose: Deactivate the interface (enter deac state).**** Parameters: sci_id: zero-based number to identify smart card controller*****************************************************************************/void sci_atom_deactivate(ULONG sci_id);/******************************************************************************* Function: sci_atom_tx_start**** Purpose: set transmit (rx) registers.**** Parameters: sci_id: zero-based number to identify smart card controller** num_bytes: number of bytes to write from out buffer*****************************************************************************/void sci_atom_tx_start(ULONG sci_id, ULONG num_bytes);/******************************************************************************* Function: sci_atom_rx_start**** Purpose: set recieve (rx) registers.**** Parameters: sci_id: zero-based number to identify smart card controller*****************************************************************************/void sci_atom_rx_start(ULONG sci_id);/******************************************************************************* Function: sci_atom_write_fifo**** Purpose: Transmit certain numbers of bytes to the FIFO**** Parameters: sci_id: zero-based number to identify smart card controller** num_bytes: number of bytes to be witten** p_buffer_addr: intput pointer of the write buffer's address*****************************************************************************/void sci_atom_write_fifo(ULONG sci_id, ULONG num_bytes, UCHAR **p_buffer_addr);/****************************************************************************** Name: sci_atom_read_fifo**** Purpose: Read any pending data from FIFO**** Parameters: sci_id: zero-based number to identify smart card controller** p_buffer_addr: intput pointer of the read buffer's address*****************************************************************************/void sci_atom_read_fifo(ULONG sci_id, UCHAR **p_buffer_addr);/******************************************************************************* Function: sci_atom_set_para_T**** Purpose: Set the current Smart Card parameters of T.**** Parameters: sci_id: zero-based number to identify smart card controller** p_sci_parameters: input pointer to Smart Card parameters*****************************************************************************/void sci_atom_set_para_T(ULONG sci_id, SCI_PARAMETERS *p_sci_parameters);/******************************************************************************* Function: sci_atom_set_para_f**** Purpose: Set the current Smart Card parameters of frequency.**** Parameters: sci_id: zero-based number to identify smart card controller** p_sci_parameters: input pointer to Smart Card parameters*****************************************************************************/void sci_atom_set_para_f(ULONG sci_id, SCI_PARAMETERS *p_sci_parameters);/******************************************************************************* Function: sci_atom_set_para_ETU**** Purpose: Set the current Smart Card parameters of ETU.**** Parameters: sci_id: zero-based number to identify smart card controller** p_sci_parameters: input pointer to Smart Card parameters*****************************************************************************/void sci_atom_set_para_ETU(ULONG sci_id, SCI_PARAMETERS *p_sci_parameters);/******************************************************************************* Function: sci_atom_set_para_WWT**** Purpose: Set the current Smart Card parameters of WWT.**** Parameters: sci_id: zero-based number to identify smart card controller** p_sci_parameters: input pointer to Smart Card parameters*****************************************************************************/void sci_atom_set_para_WWT(ULONG sci_id, SCI_PARAMETERS *p_sci_parameters);/******************************************************************************* Function: sci_atom_set_para_CWT**** Purpose: Set the current Smart Card parameters of CWT.**** Parameters: sci_id: zero-based number to identify smart card controller** p_sci_parameters: input pointer to Smart Card parameters*****************************************************************************/void sci_atom_set_para_CWT(ULONG sci_id, SCI_PARAMETERS *p_sci_parameters);/******************************************************************************* Function: sci_atom_set_para_BWT**** Purpose: Set the current Smart Card parameters of BWT.**** Parameters: sci_id: zero-based number to identify smart card controller** p_sci_parameters: input pointer to Smart Card parameters*****************************************************************************/void sci_atom_set_para_BWT(ULONG sci_id, SCI_PARAMETERS *p_sci_parameters);/******************************************************************************* Function: sci_atom_set_para_EGT**** Purpose: Set the current Smart Card parameters of EGT.**** Parameters: sci_id: zero-based number to identify smart card controller** p_sci_parameters: input pointer to Smart Card parameters*****************************************************************************/void sci_atom_set_para_EGT(ULONG sci_id, SCI_PARAMETERS *p_sci_parameters);/******************************************************************************* Function: sci_atom_set_para_check**** Purpose: Set the current Smart Card parameters of check.**** Parameters: sci_id: zero-based number to identify smart card controller** p_sci_parameters: input pointer to Smart Card parameters*****************************************************************************/void sci_atom_set_para_check(ULONG sci_id, SCI_PARAMETERS *p_sci_parameters);/****************************************************************************** Name: sci_atom_emv_check**** Purpose: check if this chip support EMV mode**** Returns 0: if NO EMV mode supported** 1: if EMV mode support****************************************************************************/INT sci_atom_emv_check(void);/******************************************************************************* Function: sci_atom_set_mode_emv2000**** Purpose: Set the current Smart Card mode of emv2000.**** Parameters: sci_id: zero-based number to identify smart card controller** p_sci_modes: input pointer to Smart Card modes*****************************************************************************/void sci_atom_set_mode_emv2000(ULONG sci_id, SCI_MODES *p_sci_modes);#endif /* _sci_atom_h_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -