This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF 52 TWI in LSM9DS1

Hello,

I want to test the IKS01A1 (STM) board with the STEVAL-MKI159v1 board by placing the IKS board in the Arduino connectors on the nRF52 (PCA10056) DK board.

I want to use this driver:

https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/lsm9ds1_STdC

By writing the platform_write and platform_read functions with the nRF SDK, the way the HAL_I2C_Mem_Read function is written. platform_write and platform_read is In this source: 

https://github.com/STMicroelectronics/STMems_Standard_C_drivers/blob/master/lsm9ds1_STdC/example/read_data_simple.c

From the nRF SDK I only know the writing and reading functions on the TWI from the bus, but there is no function that would write/read in the register of  TWI slave.

I wonder if there is anything like that? And what is the procedure? For HAL_I2C_Mem_Read / Write functions, this is written:

Write an amount of data in blocking mode to a specific memory address using HAL_I2C_Mem_Write ()

(+) Read a number of data in a blocking mode from a specific memory address using HAL_I2C_Mem_Read ()

the functions are, for example, here: 

https://github.com/PaxInstruments/STM32CubeF4/blob/master/Drivers/BSP/STM32469I-Discovery/stm32469i_discovery.c

Im asking for help.

I use: Segger Studio, nRF52 DK

Parents Reply Children
Related