TIM SDK
TIM API C
|
|
Command request.
Object type command_request.
ta_e_result_code_t ta_command_request_create | ( | ta_object_t * | request | ) |
Create object of type command_request.
[out] | request | Pointer to variable to write created object instance to. Created object instance is retained. |
ta_c_rc_ok | Object instance has been created and written to request. |
ta_c_rc_invalid_argument | request is null-pointer. |
ta_c_rc_out_of_memory | Failed allocating memory. |
ta_e_result_code_t ta_command_request_get_card_command | ( | ta_object_t | request, |
ta_object_t * | card_command | ||
) |
Command to send to card.
[in] | request | Object instance of type command_request. |
[out] | card_command | Pointer to variable to write object instance to. Object instance is of type string and is not retained. Object instance is ta_invalid_object if value is not set in request. |
ta_c_rc_ok | Object instance written to card_command. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_c_rc_invalid_argument | card_command is null-pointer. |
ta_e_result_code_t ta_command_request_get_card_reader | ( | ta_object_t | request, |
ta_e_card_reader_t * | card_reader | ||
) |
Defines that shall be used for the card commands.
[in] | request | Object instance of type command_request. |
[out] | card_reader | Pointer to variable to write value to. Value is ta_c_cr_undefined if value is not set in request. |
ta_c_rc_ok | Object instance written to card_reader. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_c_rc_invalid_argument | card_reader is null-pointer. |
ta_e_result_code_t ta_command_request_get_execution_resource | ( | ta_object_t | request, |
ta_e_resource_id_t * | execution_resource | ||
) |
If a dialog shall be shown during the execution of a command.
[in] | request | Object instance of type command_request. |
[out] | execution_resource | Pointer to variable to write value to. Value is ta_c_rid_undefined if value is not set in request. |
ta_c_rc_ok | Object instance written to execution_resource. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_c_rc_invalid_argument | execution_resource is null-pointer. |
ta_e_result_code_t ta_command_request_get_negative_resource | ( | ta_object_t | request, |
ta_e_resource_id_t * | negative_resource | ||
) |
If a dialog shall be shown in case of a negative command response.
[in] | request | Object instance of type command_request. |
[out] | negative_resource | Pointer to variable to write value to. Value is ta_c_rid_undefined if value is not set in request. |
ta_c_rc_ok | Object instance written to negative_resource. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_c_rc_invalid_argument | negative_resource is null-pointer. |
ta_e_result_code_t ta_command_request_get_order | ( | ta_object_t | request, |
int * | order | ||
) |
Specifies the order of a CommandRequest in CommandRequestList.
[in] | request | Object instance of type command_request. |
[out] | order | Pointer to variable to write value to. Value is 0 if value is not set in request. |
ta_c_rc_ok | Object instance written to order. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_c_rc_invalid_argument | order is null-pointer. |
ta_e_result_code_t ta_command_request_get_positive_answers | ( | ta_object_t | request, |
ta_object_t * | positive_answers | ||
) |
Possible positive answers for a CommandRequest.
[in] | request | Object instance of type command_request. |
[out] | positive_answers | Pointer to variable to write object instance to. Object instance is of type list and is not retained. The list contains elements of type string. |
ta_c_rc_ok | Object instance written to positive_answers. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_c_rc_invalid_argument | positive_answers is null-pointer. |
ta_e_result_code_t ta_command_request_get_positive_resource | ( | ta_object_t | request, |
ta_e_resource_id_t * | positive_resource | ||
) |
If a dialog shall be shown in case of a positive command response.
[in] | request | Object instance of type command_request. |
[out] | positive_resource | Pointer to variable to write value to. Value is ta_c_rid_undefined if value is not set in request. |
ta_c_rc_ok | Object instance written to positive_resource. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_c_rc_invalid_argument | positive_resource is null-pointer. |
ta_e_result_code_t ta_command_request_get_pre_resource | ( | ta_object_t | request, |
ta_e_resource_id_t * | pre_resource | ||
) |
If a dialog shall be shown before sending a card command.
[in] | request | Object instance of type command_request. |
[out] | pre_resource | Pointer to variable to write value to. Value is ta_c_rid_undefined if value is not set in request. |
ta_c_rc_ok | Object instance written to execution_resource. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_c_rc_invalid_argument | pre_resource is null-pointer. |
ta_e_result_code_t ta_command_request_set_card_command | ( | ta_object_t | request, |
ta_object_t | card_command | ||
) |
Command to send to card.
[in] | request | Object instance of type command_request. |
[in] | card_command | Object instance to set. Object instance can be ta_invalid_object to clear the value in request. If object instance is not ta_invalid_object is has to be of type string. |
ta_c_rc_ok | Object instance assigned to request. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_c_rc_invalid_argument | card_command is not ta_invalid_object and is not of type string. |
ta_e_result_code_t ta_command_request_set_card_reader | ( | ta_object_t | request, |
ta_e_card_reader_t | card_reader | ||
) |
Defines that shall be used for the card commands.
[in] | request | Object instance of type command_request. |
[in] | card_reader | Value to set. Value can be ta_c_cr_undefined to clear the value in request. |
ta_c_rc_ok | Value assigned to request. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_e_result_code_t ta_command_request_set_execution_resource | ( | ta_object_t | request, |
ta_e_resource_id_t | execution_resource | ||
) |
If a dialog shall be shown during the execution of a command.
[in] | request | Object instance of type command_request. |
[in] | execution_resource | Value to set. Value can be ta_c_rid_undefined to clear the value in request. |
ta_c_rc_ok | Value assigned to request. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_e_result_code_t ta_command_request_set_negative_resource | ( | ta_object_t | request, |
ta_e_resource_id_t | negative_resource | ||
) |
If a dialog shall be shown in case of a negative command response.
[in] | request | Object instance of type command_request. |
[in] | negative_resource | Value to set. Value can be ta_c_rid_undefined to clear the value in request. |
ta_c_rc_ok | Value assigned to request. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_e_result_code_t ta_command_request_set_order | ( | ta_object_t | request, |
int | order | ||
) |
Specifies the order of a CommandRequest in CommandRequestList.
[in] | request | Object instance of type command_request. |
[in] | order | Value to set. |
ta_c_rc_ok | Value assigned to request. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_e_result_code_t ta_command_request_set_positive_answers | ( | ta_object_t | request, |
ta_object_t | positive_answers | ||
) |
Set possible positive answers for a CommandRequest.
[in] | request | Object instance of type command_request. |
[in] | positive_answers | Object instance to set. Object instance has to be of type list. The list has to contain elements of type string. |
ta_c_rc_ok | Object instance assigned to request. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_c_rc_invalid_argument | positive_answers is ta_invalid_object. |
ta_c_rc_invalid_argument | positive_answers is not of type list. |
ta_c_rc_invalid_argument | Element in positive_answers is ta_invalid_object. |
ta_c_rc_invalid_argument | Element in positive_answers is not of type string. |
ta_e_result_code_t ta_command_request_set_positive_resource | ( | ta_object_t | request, |
ta_e_resource_id_t | positive_resource | ||
) |
If a dialog shall be shown in case of a positive command response.
[in] | request | Object instance of type command_request. |
[in] | positive_resource | Value to set. Value can be ta_c_rid_undefined to clear the value in request. |
ta_c_rc_ok | Value assigned to request. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |
ta_e_result_code_t ta_command_request_set_pre_resource | ( | ta_object_t | request, |
ta_e_resource_id_t | pre_resource | ||
) |
If a dialog shall be shown before sending a card command.
[in] | request | Object instance of type command_request. |
[in] | pre_resource | Value to set. Value can be ta_c_rid_undefined to clear the value in request. |
ta_c_rc_ok | Value assigned to request. |
ta_c_rc_invalid_argument | request is ta_invalid_object. |
ta_c_rc_invalid_argument | request is not of type command_request. |