|
IoT-MBBR (masterthesis)
Masterthesis upgrading a Moving Bed BioReactor with extra sensors and cloud connectivity.
|
Those platform functions are platform dependent and have to be implemented by the user. More...
#include "vl53l1_types.h"Go to the source code of this file.
Data Structures | |
| struct | VL53L1_Dev_t |
Typedefs | |
| typedef VL53L1_Dev_t * | VL53L1_DEV |
Functions | |
| int8_t | VL53L1_WriteMulti (uint16_t dev, uint16_t index, uint8_t *pdata, uint32_t count) |
| VL53L1_WriteMulti() definition. To be implemented by the developer. More... | |
| int8_t | VL53L1_ReadMulti (uint16_t dev, uint16_t index, uint8_t *pdata, uint32_t count) |
| VL53L1_ReadMulti() definition. To be implemented by the developer. More... | |
| int8_t | VL53L1_WrByte (uint16_t dev, uint16_t index, uint8_t data) |
| VL53L1_WrByte() definition. To be implemented by the developer. More... | |
| int8_t | VL53L1_WrWord (uint16_t dev, uint16_t index, uint16_t data) |
| VL53L1_WrWord() definition. To be implemented by the developer. More... | |
| int8_t | VL53L1_WrDWord (uint16_t dev, uint16_t index, uint32_t data) |
| VL53L1_WrDWord() definition. To be implemented by the developer. More... | |
| int8_t | VL53L1_RdByte (uint16_t dev, uint16_t index, uint8_t *pdata) |
| VL53L1_RdByte() definition. To be implemented by the developer. More... | |
| int8_t | VL53L1_RdWord (uint16_t dev, uint16_t index, uint16_t *pdata) |
| VL53L1_RdWord() definition. To be implemented by the developer. More... | |
| int8_t | VL53L1_RdDWord (uint16_t dev, uint16_t index, uint32_t *pdata) |
| VL53L1_RdDWord() definition. To be implemented by the developer. More... | |
| int8_t | VL53L1_WaitMs (uint16_t dev, int32_t wait_ms) |
| VL53L1_WaitMs() definition. To be implemented by the developer. More... | |
Those platform functions are platform dependent and have to be implemented by the user.
Definition in file vl53l1_platform.h.
| typedef VL53L1_Dev_t* VL53L1_DEV |
Definition at line 20 of file vl53l1_platform.h.
VL53L1_RdByte() definition.
To be implemented by the developer.
VL53L1_RdByte() definition.
To be implemented by the developer.
This method also initializes i2C if necessary.
| [in] | dev | Device ID (uint16_t). |
| [in] | index | Index (uint16_t). |
| [in] | data | Pointer to the data (uint8_t) to put the read byte in. |
0 - Byte read correctly. -1 - i2cTransferNack, NACK received during transfer. -2 - i2cTransferBusErr, Bus error during transfer (misplaced START/STOP). -3 - i2cTransferArbLost, Arbitration lost during transfer. -4 - i2cTransferUsageFault, Usage fault. -5 - i2cTransferSwFault, SW fault. -6 - Coudldn't configure I2C. Definition at line 341 of file vl53l1_platform.c.
VL53L1_RdDWord() definition.
To be implemented by the developer.
VL53L1_RdDWord() definition.
To be implemented by the developer.
This method also initializes i2C if necessary.
| [in] | dev | Device ID (uint16_t). |
| [in] | index | Index (uint16_t). |
| [in] | data | Pointer to the data (uint32_t) to put the read double word in. |
0 - Double word read correctly. -1 - i2cTransferNack, NACK received during transfer. -2 - i2cTransferBusErr, Bus error during transfer (misplaced START/STOP). -3 - i2cTransferArbLost, Arbitration lost during transfer. -4 - i2cTransferUsageFault, Usage fault. -5 - i2cTransferSwFault, SW fault. -6 - Coudldn't configure I2C. Definition at line 453 of file vl53l1_platform.c.
VL53L1_RdWord() definition.
To be implemented by the developer.
VL53L1_RdWord() definition.
To be implemented by the developer.
This method also initializes i2C if necessary.
| [in] | dev | Device ID (uint16_t). |
| [in] | index | Index (uint16_t). |
| [in] | data | Pointer to the data (uint16_t) to put the read word in. |
0 - Word read correctly. -1 - i2cTransferNack, NACK received during transfer. -2 - i2cTransferBusErr, Bus error during transfer (misplaced START/STOP). -3 - i2cTransferArbLost, Arbitration lost during transfer. -4 - i2cTransferUsageFault, Usage fault. -5 - i2cTransferSwFault, SW fault. -6 - Coudldn't configure I2C. Definition at line 394 of file vl53l1_platform.c.
VL53L1_ReadMulti() definition.
To be implemented by the developer.
VL53L1_ReadMulti() definition.
To be implemented by the developer.
This method also initializes i2C if necessary.
This method is only used in VL53L1X_GetResult.
| [in] | dev | Device ID (uint16_t). |
| [in] | index | Index (uint16_t). |
| [in] | pdata | Pointer to the data (uint8_t) to put the read bytes in. |
| [in] | count | Counter (uint32_t). |
0 - TODO -1 - i2cTransferNack, NACK received during transfer. -2 - i2cTransferBusErr, Bus error during transfer (misplaced START/STOP). -3 - i2cTransferArbLost, Arbitration lost during transfer. -4 - i2cTransferUsageFault, Usage fault. -5 - i2cTransferSwFault, SW fault. -6 - Coudldn't configure I2C. Definition at line 134 of file vl53l1_platform.c.
VL53L1_WaitMs() definition.
To be implemented by the developer.
VL53L1_WaitMs() definition.
To be implemented by the developer.
Definition at line 491 of file vl53l1_platform.c.
VL53L1_WrByte() definition.
To be implemented by the developer.
VL53L1_WrByte() definition.
To be implemented by the developer.
This method also initializes i2C if necessary.
| [in] | dev | Device ID (uint16_t). |
| [in] | index | Index (uint16_t). |
| [in] | data | The data (uint8_t) to put on the I2C bus. |
0 - Byte written correctly. -1 - i2cTransferNack, NACK received during transfer. -2 - i2cTransferBusErr, Bus error during transfer (misplaced START/STOP). -3 - i2cTransferArbLost, Arbitration lost during transfer. -4 - i2cTransferUsageFault, Usage fault. -5 - i2cTransferSwFault, SW fault. -6 - Coudldn't configure I2C. Definition at line 173 of file vl53l1_platform.c.
VL53L1_WrDWord() definition.
To be implemented by the developer.
VL53L1_WrDWord() definition.
To be implemented by the developer.
This method also initializes i2C if necessary.
| [in] | dev | Device ID (uint16_t). |
| [in] | index | Index (uint16_t). |
| [in] | data | The data (uint32_t) to put on the I2C bus. |
0 - Double word written correctly. -1 - i2cTransferNack, NACK received during transfer. -2 - i2cTransferBusErr, Bus error during transfer (misplaced START/STOP). -3 - i2cTransferArbLost, Arbitration lost during transfer. -4 - i2cTransferUsageFault, Usage fault. -5 - i2cTransferSwFault, SW fault. -6 - Coudldn't configure I2C. Definition at line 285 of file vl53l1_platform.c.
VL53L1_WriteMulti() definition.
To be implemented by the developer.
VL53L1_WriteMulti() definition.
To be implemented by the developer.
Definition at line 93 of file vl53l1_platform.c.
VL53L1_WrWord() definition.
To be implemented by the developer.
VL53L1_WrWord() definition.
To be implemented by the developer.
This method also initializes i2C if necessary.
| [in] | dev | Device ID (uint16_t). |
| [in] | index | Index (uint16_t). |
| [in] | data | The data (uint16_t) to put on the I2C bus. |
0 - Word written correctly. -1 - i2cTransferNack, NACK received during transfer. -2 - i2cTransferBusErr, Bus error during transfer (misplaced START/STOP). -3 - i2cTransferArbLost, Arbitration lost during transfer. -4 - i2cTransferUsageFault, Usage fault. -5 - i2cTransferSwFault, SW fault. -6 - Coudldn't configure I2C. Definition at line 229 of file vl53l1_platform.c.