Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: VL53L3CX_NoShield_1Sensor_poll_Mb06x VL53L3_NoShield_1Sensor_polling_Mb63 X_NUCLEO_53L3A2 53L3A2_Ranging
spi_interface.h
00001 /* Define to prevent from recursive inclusion --------------------------------*/ 00002 00003 00004 #ifndef __SPI_INTERFACE_H 00005 #define __SPI_INTERFACE_H 00006 00007 #include "pinmap.h" 00008 00009 #ifdef __cplusplus 00010 extern "C" { 00011 #endif 00012 00013 int v53l1x_i2c_write_if(uint8_t* pBuffer, uint8_t DeviceAddr, uint16_t RegisterAddr, uint16_t NumByteToWrite); 00014 int v53l1x_i2c_read_if(uint8_t* pBuffer, uint8_t DeviceAddr, uint16_t RegisterAddr, uint16_t NumByteToWrite); 00015 int GetTickCount( uint32_t *ptick_count_ms); 00016 00017 int v53l1x_i2c_write_direct(uint8_t* pBuffer, uint8_t DeviceAddr, uint16_t NumByteToWrite); 00018 00019 void delete_interrupt_measure_detection_irq(); 00020 void create_interrupt_measure_detection_irq(PinName pin); 00021 void enable_interrupt_measure_detection_irq(); 00022 void disable_interrupt_measure_detection_irq(); 00023 void attach_interrupt_measure_detection_irq(void (*fptr)(void)); 00024 void set_gpio_pin(PinName pin, int state); 00025 00026 #ifdef __cplusplus 00027 } 00028 #endif 00029 00030 00031 #endif /* __SPI_INTERFACE_H */ 00032
Generated on Mon Jul 18 2022 15:35:57 by
1.7.2