C51 COMPILER V9.01   SH_IEC60730B_8051F_AIO                                                10/11/2023 14:22:16 PAGE 1   


C51 COMPILER V9.01, COMPILATION OF MODULE SH_IEC60730B_8051F_AIO
OBJECT MODULE PLACED IN .\output\sh_iec60730b_8051f_aio.obj
COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE code_classb\iec60730_lib\sh_iec60730b_8051f_aio.c LARGE OPTIMIZE(7,SIZE)
                    - REGFILE(.\output\McuFlash_ISP.ORC) BROWSE INTVECTOR(0X1000) INCDIR(.\header_app;.\header_drv;.\code_gasguage) DEBUG OBJ
                    -ECTEXTEND PRINT(.\output\sh_iec60730b_8051f_aio.lst) OBJECT(.\output\sh_iec60730b_8051f_aio.obj)

line level    source

   1          /*
   2           * IEC60730 Class B Library for SINOWEALTH 8051 based ICs.
   3           * File:    sh_iec60730b_8051f_aio.c
   4           * Version: 1.0
   5           * Author:  Robin.zhang Chaoming.luo
   6           * Date:    04/21/2023
   7           * SINOWEALTH IS SUPPLYING THIS SOFTWARE FOR USE EXCLUSIVELY ON SINOWEALTH'S 
   8           * MICROCONTROLLER PRODUCTS. IT IS PROTECTED UNDER APPLICABLE COPYRIGHT LAWS. 
   9           * THIS SOFTWARE IS FOR GUIDANCE IN ORDER TO SAVE TIME. AS A RESULT, SINOWEALTH 
  10           * SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES 
  11           * WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR
  12           * THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN 
  13           * CONNECTION WITH THEIR PRODUCTS.
  14           *
  15          */
  16          
  17          /*
  18             AREA |.text|,CODE,READONLY 
  19          */
  20          #include "sh_iec60730b_8051f_cfg.h"
*** WARNING C318 IN LINE 20 OF code_classb\iec60730_lib\sh_iec60730b_8051f_aio.c: can't open file 'sh_iec60730b_8051f_cf
             -g.h'
  21          #include "MCURegister.h"
  22          
  23          #if SH_CHK_AIO_TEST_EN == 1
*** WARNING C322 IN LINE 23 OF code_classb\iec60730_lib\sh_iec60730b_8051f_aio.c: unknown identifier
              SHT_RESULT   __iec60730b_aio_state;
              
              /*******************************************************************************
               *
               * @brief    The function reads converted analog value and 
               *           check if the value fits into predefined limits.
               *
               *           This function reads converted value only
               *           if __iec60730b_aio_state == SH_CHK_AIO_PROGRESS.
               *
               * @param    void
               *
               * @return   SH_CHK_PASS         - successfull execution of test (all channels tested).
               *           SH_CHK_FAIL_AIO     - converted value doesn't fit into limits.
               *
               ******************************************************************************/
              SHT_RESULT sh_8051f_aio_input_check()
              {
                  SHT_U8 i;
                  __iec60730b_aio_state = SH_CHK_PASS;
                  for( i = 0; i < SH_CHK_AIO_TEST_NUM; i++)
                  {
                      if(__iec60730b_aio_val[i] < __iec60730b_aio_limit[i].low || __iec60730b_aio_val[i] > __iec60730b_a
             -io_limit[i].high)
                      {
                          __iec60730b_aio_state = SH_CHK_FAIL_AIO;
                          break;
C51 COMPILER V9.01   SH_IEC60730B_8051F_AIO                                                10/11/2023 14:22:16 PAGE 2   

                      }
                  }
                  return __iec60730b_aio_state;    
              }
              #endif


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =   ----    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  2 WARNING(S),  0 ERROR(S)
