fpc_com_transport.h
Go to the documentation of this file.
/*
* Copyright (c) 2020 Fingerprint Cards AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef FPC_COM_TRANSPORT_H
#define FPC_COM_TRANSPORT_H
#include <stdint.h>
#include "fpc_com_chain.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
fpc_com_result_t fpc_com_transport_transmit(fpc_com_packet_tsp_t *packet, fpc_com_chain_t *chain);
fpc_com_result_t fpc_com_transport_receive(fpc_com_packet_tsp_t *packet, fpc_com_chain_t *chain);
uint16_t fpc_com_transport_get_overhead(uint16_t *offset);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* FPC_COM_TRANSPORT_H */
fpc_com_chain
Definition: fpc_com_chain.h:50
fpc_com_transport_transmit
fpc_com_result_t fpc_com_transport_transmit(fpc_com_packet_tsp_t *packet, fpc_com_chain_t *chain)
Transmit a transport layer packet.
Definition: fpc_com_transport.c:28
fpc_com_transport_get_overhead
uint16_t fpc_com_transport_get_overhead(uint16_t *offset)
Returns the overhead of the layer.
Definition: fpc_com_transport.c:88
fpc_com_packet_transport
Definition: fpc_com_packets.h:37
fpc_com_chain.h
Communication chain type definitions.
fpc_com_result_t
uint8_t fpc_com_result_t
Definition: fpc_com_result.h:41
fpc_com_transport_receive
fpc_com_result_t fpc_com_transport_receive(fpc_com_packet_tsp_t *packet, fpc_com_chain_t *chain)
Receive a transport layer packet.
Definition: fpc_com_transport.c:60