微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > use of I2C interface for cc2541

use of I2C interface for cc2541

时间:10-02 整理:3721RD 点击:

       Now ,I use cc2541 to connect a max30100 with i2c interface.The max30100 is a  heartrate/SPO2  device.

       I see the example stack of ble4.0 which used i2c  is just  a  constant  address. However, the max30100 device is different. As a slave, the write_address is 0xAE and  the  read_address  is  0xAF. It  also  has  a  7 bit  I2c  interface  0x57.  When  I   initialize  ,  how  to  select  the address  .And  when I read  and write the register  of  max30100 , would  I  need  to change  the  write/read  address. How to use the  API of  I2c of  stack .

      For the reason that the max30100 is a  heartrate/SPO2  device, how can I use the heartrate stack and its API.

      Thank you

1. you can use  different address with below API from hal_i2c.c and h.

i2cLen_t HalI2CWrite(uint8 address, i2cLen_t len, uint8 *pBuf)

2. suggest to read the TI_BLE_Sample_Applications_Guide.pdf .  Chapter 4 have a  detail introduction to Heart Rate Sensor applicaiton.

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top