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: SDFileSystem max32630fthr USBDevice
Diff: Van_Algorithm/Van_API.h
- Revision:
- 4:217334c3a5b2
diff -r 35b05d91568d -r 217334c3a5b2 Van_Algorithm/Van_API.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Van_Algorithm/Van_API.h Tue Jul 28 01:40:05 2020 +0000 @@ -0,0 +1,36 @@ +#ifndef __VAN_API_H__ +#define __VAN_API_H__ + +#include "Van_Defines.h" +#include "Van_ChipInterface.h" + +uint16_t GetAPIVersion(void); + +Van_Status InitRanging(Van_Config_TypeDef *cfg, uint8_t *cg_para); + +Van_Status StartRanging(void); + +Van_Status ReadRangingResult(Van_Dist_TypeDef *result); + +Van_Status GetIntStatus(uint8_t *int_status); + +Van_Status PollingGetRangingResult(Van_Dist_TypeDef *result, uint8_t next_actiong); + +Van_Status GetPileUpPara(Van_PileUp_TypeDef *pile_up_para); + +Van_Status SetRangingMode(Van_Config_TypeDef *cfg); + +Van_Status WriteCGPara(uint8_t *cg_para); + +Van_Status SetPileUpPara(Van_PileUp_TypeDef *pile_up_para); + +Van_Status DownloadFirmware(uint8_t *buf, uint32_t size); + +Van_Status ReadOTPData(uint8_t addr, uint8_t *buf, uint8_t len); + +Van_Status InitAlgorithmParameter(Van_Config_TypeDef *cfg); + + +#endif + +