Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
SamUtilAdapter.cpp
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2022 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * See the NOTICE file(s) distributed with this work for additional information regarding *
5 * copyright ownership. *
6 * *
7 * This program and the accompanying materials are made available under the terms of the Eclipse *
8 * Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 *
9 * *
10 * SPDX-License-Identifier: EPL-2.0 *
11 **************************************************************************************************/
12
13#include "SamUtilAdapter.h"
14
15namespace keyple {
16namespace card {
17namespace calypso {
18
19SamUtilAdapter::SamUtilAdapter() {}
20
21uint8_t SamUtilAdapter::getClassByte(const ProductType productType)
22{
23 if (productType == ProductType::SAM_S1DX) {
24 return 0x94;
25 }
26 return 0x80;
27 }
28
29}
30}
31}
static uint8_t getClassByte(const ProductType productType)
CalypsoSam::ProductType ProductType