• 大小: 9.33MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-12
  • 语言: 其他
  • 标签: APDS9930  

资源简介

APDS-9930 STM32程序,采用Cube HAL库编写,简单易懂;程序实现CH0,CH1,Prox 3个通道数据的读取;3个数据为16位精度;可自行通过积分时间ALS_Time位调节!实测可用

资源截图

代码片段和文件信息

/**
  ******************************************************************************
  * @file    stm32f4xx_hal.c
  * @author  MCD Application Team
  * @version V1.7.1
  * @date    14-April-2017
  * @brief   HAL module driver.
  *          This is the common part of the HAL initialization
  *
  @verbatim
  ==============================================================================
                     ##### How to use this driver #####
  ==============================================================================
    [..]
    The common HAL driver contains a set of generic and common APIs that can be
    used by the PPP peripheral drivers and the user to start using the HAL. 
    [..]
    The HAL contains two APIs‘ categories: 
         (+) Common HAL APIs
         (+) Services HAL APIs

  @endverbatim
  ******************************************************************************
  * @attention
  *
  * 

© COPYRIGHT(c) 2017 STMicroelectronics


  *
  * Redistribution and use in source and binary forms with or without modification
  * are permitted provided that the following conditions are met:
  *   1. Redistributions of source code must retain the above copyright notice
  *      this list of conditions and the following disclaimer.
  *   2. Redistributions in binary form must reproduce the above copyright notice
  *      this list of conditions and the following disclaimer in the documentation
  *      and/or other materials provided with the distribution.
  *   3. Neither the name of STMicroelectronics nor the names of its contributors
  *      may be used to endorse or promote products derived from this software
  *      without specific prior written permission.
  *
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
  * AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  * FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
  * DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR
  * SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  * CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY
  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  ******************************************************************************
  */ 

/* Includes ------------------------------------------------------------------*/
#include “stm32f4xx_hal.h“

/** @addtogroup STM32F4xx_HAL_Driver
  * @{
  */

/** @defgroup HAL HAL
  * @brief HAL module driver.
  * @{
  */

/* Private typedef -----------------------------------------------------------*/
/* P

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        4494  2017-10-30 16:51  .mxproject
     文件     1197200  2017-10-27 14:12  APDS-9930.pdf
     文件       11064  2017-10-31 14:51  APDS9930.ioc
     目录           0  2017-10-30 16:28  Drivers\
     目录           0  2017-10-30 16:51  Drivers\CMSIS\
     目录           0  2017-10-30 16:28  Drivers\CMSIS\Device\
     目录           0  2017-10-30 16:28  Drivers\CMSIS\Device\ST\
     目录           0  2017-10-30 16:51  Drivers\CMSIS\Device\ST\STM32F4xx\
     目录           0  2017-10-30 16:51  Drivers\CMSIS\Device\ST\STM32F4xx\Include\
     文件     1348059  2017-06-29 20:28  Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f407xx.h
     文件       10796  2017-06-29 20:28  Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h
     文件        3848  2017-06-29 20:28  Drivers\CMSIS\Device\ST\STM32F4xx\Include\system_stm32f4xx.h
     目录           0  2017-10-30 16:51  Drivers\CMSIS\Device\ST\STM32F4xx\Source\
     目录           0  2017-10-30 16:51  Drivers\CMSIS\Device\ST\STM32F4xx\Source\Templates\
     目录           0  2017-11-03 20:36  Drivers\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\
     目录           0  2017-10-30 16:51  Drivers\CMSIS\Include\
     文件        7265  2017-06-29 20:28  Drivers\CMSIS\Include\arm_common_tables.h
     文件        3942  2017-06-29 20:28  Drivers\CMSIS\Include\arm_const_structs.h
     文件      252339  2017-06-29 20:28  Drivers\CMSIS\Include\arm_math.h
     文件       24423  2017-06-29 20:28  Drivers\CMSIS\Include\cmsis_armcc.h
     文件       55083  2017-06-29 20:28  Drivers\CMSIS\Include\cmsis_armcc_V6.h
     文件       41435  2017-06-29 20:28  Drivers\CMSIS\Include\cmsis_gcc.h
     文件       37218  2017-06-29 20:28  Drivers\CMSIS\Include\core_cm0.h
     文件       44796  2017-06-29 20:28  Drivers\CMSIS\Include\core_cm0plus.h
     文件      103909  2017-06-29 20:28  Drivers\CMSIS\Include\core_cm3.h
     文件      114498  2017-06-29 20:28  Drivers\CMSIS\Include\core_cm4.h
     文件      139660  2017-06-29 20:28  Drivers\CMSIS\Include\core_cm7.h
     文件        3620  2017-06-29 20:28  Drivers\CMSIS\Include\core_cmFunc.h
     文件        3636  2017-06-29 20:28  Drivers\CMSIS\Include\core_cmInstr.h
     文件        3662  2017-06-29 20:28  Drivers\CMSIS\Include\core_cmSimd.h
     文件       45262  2017-06-29 20:28  Drivers\CMSIS\Include\core_sc000.h
............此处省略140个文件信息

评论

共有 条评论