STM8S/A Standard Peripherals Firmware Library: main.h Source File

STM8S/A

UART1/UART1_Interrupt/main.h
Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    UART1_Interrupt\main.h
00004   * @author  MCD Application Team
00005   * @version V2.0.1
00006   * @date    18-November-2011
00007   * @brief   This file contains the external declaration of main.c file.
00008   ******************************************************************************
00009   * @attention
00010   *
00011   * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
00012   *
00013   * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
00014   * You may not use this file except in compliance with the License.
00015   * You may obtain a copy of the License at:
00016   *
00017   *        http://www.st.com/software_license_agreement_liberty_v2
00018   *
00019   * Unless required by applicable law or agreed to in writing, software 
00020   * distributed under the License is distributed on an "AS IS" BASIS, 
00021   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00022   * See the License for the specific language governing permissions and
00023   * limitations under the License.
00024   *
00025   ******************************************************************************
00026   */ 
00027 
00028 /* Define to prevent recursive inclusion -------------------------------------*/
00029 #ifndef __MAIN_H__
00030 #define __MAIN_H__
00031 
00032 /* Includes ------------------------------------------------------------------*/
00033 /* Private variables ---------------------------------------------------------*/
00034 /* Exported types ------------------------------------------------------------*/
00035 /* Private typedef -----------------------------------------------------------*/
00036 /* Private define ------------------------------------------------------------*/
00037 #define TxBufferSize1   (countof(TxBuffer1) - 1)
00038 #define TxBufferSize2   (countof(TxBuffer2) - 1)
00039 #define RxBufferSize1   TxBufferSize2
00040 #define RxBufferSize2   TxBufferSize1
00041 
00042 /* Private macro -------------------------------------------------------------*/
00043 #define countof(a)   (sizeof(a) / sizeof(*(a)))
00044 
00045 /* Exported functions ------------------------------------------------------- */
00046 uint8_t GetVar_TxCounter1(void);
00047 uint8_t IncrementVar_TxCounter1(void);
00048 uint8_t GetVar_TxCounter2(void);
00049 uint8_t IncrementVar_TxCounter2(void);
00050 uint8_t GetVar_RxCounter1(void);
00051 uint8_t IncrementVar_RxCounter1(void);
00052 uint8_t GetVar_RxCounter2(void);
00053 uint8_t IncrementVar_RxCounter2(void);
00054 uint8_t GetVar_NbrOfDataToTransfer1(void);
00055 uint8_t GetVar_NbrOfDataToTransfer2(void);
00056 uint8_t GetVar_NbrOfDataToRead1(void);
00057 uint8_t GetVar_NbrOfDataToRead2(void);
00058 
00059 
00060 #endif /* __MAIN_H__ */
00061 
00062 
00063 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com