|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
APDS9960 Driver. More...
#include "APDS9960.h"
Functions | |
| FctERR | APDS9960_Init (const uint8_t idx, I2C_HandleTypeDef *const hi2c, const uint16_t devAddress) |
| Initialization for APDS9960 peripheral. | |
| FctERR | APDS9960_Init_Single (void) |
| Initialization for APDS9960 peripheral. | |
| FctERR | APDS9960_Write (I2C_slave_t *const pSlave, const uint8_t *data, const uint16_t addr, const uint16_t nb) |
| I2C Write function for APDS9960. | |
| FctERR | APDS9960_Read (I2C_slave_t *const pSlave, uint8_t *data, const uint16_t addr, const uint16_t nb) |
| I2C Read function for APDS9960. | |
| FctERR | APDS9960_Write_Word (I2C_slave_t *const pSlave, const uint16_t *data, const uint16_t addr) |
| I2C Word Write (little endian) function for APDS9960. | |
| FctERR | APDS9960_Read_Word (I2C_slave_t *const pSlave, uint16_t *data, const uint16_t addr) |
| I2C Word Read (little endian) function for APDS9960. | |
| FctERR | APDS9960_Write_Special (I2C_slave_t *const pSlave, const APDS9960_spec_func func) |
| I2C Special function Write function for APDS9960. | |
APDS9960 Driver.
APDS9960: Digital Proximity, Ambient Light, RGB and Gesture Sensor
| FctERR APDS9960_Init | ( | const uint8_t | idx, |
| I2C_HandleTypeDef *const | hi2c, | ||
| const uint16_t | devAddress ) |
Initialization for APDS9960 peripheral.
| [in] | idx | - APDS9960 index |
| [in] | hi2c | - pointer to APDS9960 I2C instance |
| [in] | devAddress | - APDS9960 device address |


| FctERR APDS9960_Init_Single | ( | void | ) |
Initialization for APDS9960 peripheral.

| FctERR APDS9960_Read | ( | I2C_slave_t *const | pSlave, |
| uint8_t * | data, | ||
| const uint16_t | addr, | ||
| const uint16_t | nb ) |
I2C Read function for APDS9960.
| [in] | pSlave | - Pointer to I2C slave instance |
| [in,out] | data | - pointer to read to |
| [in] | addr | - Address to read from |
| [in] | nb | - Number of bytes to read |


| FctERR APDS9960_Read_Word | ( | I2C_slave_t *const | pSlave, |
| uint16_t * | data, | ||
| const uint16_t | addr ) |
I2C Word Read (little endian) function for APDS9960.
| [in,out] | pSlave | - Pointer to I2C slave instance |
| [in,out] | data | - pointer to read to |
| [in] | addr | - Address to read from |


| FctERR APDS9960_Write | ( | I2C_slave_t *const | pSlave, |
| const uint8_t * | data, | ||
| const uint16_t | addr, | ||
| const uint16_t | nb ) |
I2C Write function for APDS9960.
| [in] | pSlave | - Pointer to I2C slave instance |
| [in] | data | - pointer to write from |
| [in] | addr | - Address to write to |
| [in] | nb | - Number of bytes to write |


| FctERR APDS9960_Write_Special | ( | I2C_slave_t *const | pSlave, |
| const APDS9960_spec_func | func ) |
I2C Special function Write function for APDS9960.
| [in,out] | pSlave | - Pointer to I2C slave instance |
| [in] | func | - special function to execute |


| FctERR APDS9960_Write_Word | ( | I2C_slave_t *const | pSlave, |
| const uint16_t * | data, | ||
| const uint16_t | addr ) |
I2C Word Write (little endian) function for APDS9960.
| [in,out] | pSlave | - Pointer to I2C slave instance |
| [in] | data | - pointer to write from |
| [in] | addr | - Address to write to |

