MBot Software Library  v1.0
An API documentation to mbot_firmware repository
bhy_support.h
Go to the documentation of this file.
1 
52 #ifndef BHY_SUPPORT_H_
53 #define BHY_SUPPORT_H_
54 
55 /********************************************************************************/
56 /* HEADER FILES */
57 /********************************************************************************/
58 #include "bhy.h"
59 #include <inttypes.h>
60 #include <pico/stdlib.h>
61 //#include <twi.h>
62 
63 /********************************************************************************/
64 /* MACROS */
65 /********************************************************************************/
66 #define RETRY_NUM 3
67 
70 /* 0x28 CONFLICTS ON ATMEL DEV KITS WITH THE ONBOARD EDBG!!!! */
71 #define BHY_I2C_SLAVE_ADDRESS BHY_I2C_ADDR1
73 #define BHY_RESET_DELAY_MS UINT32_C(50)
74 
77 #define I2C_ONCE_WRITE_MAX_COUNT (8)
78 #define I2C_ONCE_READ_MAX_COUNT (8)
79 
80 /********************************************************************************/
81 /* FUNCTION DECLARATIONS */
82 /********************************************************************************/
87 int8_t bhy_initialize_support(void);
88 
95 void bhy_delay_msec(uint32_t msec);
96 
100 void bhy_printf (const u8 * string);
101 
105 uint8_t *bhy_get_version(void);
106 
107 
108 #endif /* BHY_SUPPORT_H_ */
BHY Sensor Driver Support Header File.
unsigned char u8
Definition: bhy.h:190
void bhy_delay_msec(uint32_t msec)
Initiates a delay of the length of the argument in milliseconds.
Definition: bhy_support.c:116
int8_t bhy_initialize_support(void)
Initializes BHY smart sensor and its required connections.
Definition: bhy_support.c:83
void bhy_printf(const u8 *string)
provides a print function to the bhy driver on DD2.0 platform
Definition: bhy_support.c:123
uint8_t * bhy_get_version(void)
provides the mcu reference code version
Definition: bhy_support.c:131