STM8S/A Standard Peripherals Firmware Library
|
This file contains the main function for UART1 Smartcard example. More...
#include "stm8s.h"
Go to the source code of this file.
Data Structures | |
struct | SC_ATR |
Defines | |
#define | HIST_LENGHT 20 |
#define | SC_Receive_Timeout 0x4000 |
#define | SETUP_LENGHT 20 |
#define | T0_PROTOCOL 0x00 |
Enumerations | |
enum | TestStatus { FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED } |
Functions | |
void | GPIO_Config (void) |
Configures the different GPIO ports. | |
void | main (void) |
Main program. | |
void | Multiplexer_EvalBoard_Config (void) |
Configures the Multiplexer on the evalboard to select the smard card. | |
uint8_t | SC_decode_Answer2reset (__IO uint8_t *card) |
Decode the Card ATR Response. | |
Variables | |
__IO TestStatus | ATRDecodeStatus = FAILED |
__IO uint32_t | CardInserted = 0 |
__IO uint32_t | CardProtocol = 1 |
__IO uint32_t | Counter = 0 |
__IO uint8_t | DST_Buffer [50] |
__IO uint32_t | index = 0 |
SC_ATR | SC_A2R |
Detailed Description
This file contains the main function for UART1 Smartcard example.
- Author:
- MCD Application Team
- Version:
- V2.2.0
- Date:
- 30-September-2014
- Attention:
© COPYRIGHT 2014 STMicroelectronics
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
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.
Definition in file STM8S_StdPeriph_Examples/UART1/UART1_SmartCard/main.c.