nmspi.h
Go to the documentation of this file.
1 
35 #ifndef _NMSPI_H_
36 #define _NMSPI_H_
37 
39 
40 #ifdef __cplusplus
41  extern "C" {
42 #endif
43 
49 sint8 nm_spi_init(void);
50 
56 sint8 nm_spi_deinit(void);
57 
66 
76 sint8 nm_spi_read_reg_with_ret(uint32 u32Addr, uint32* pu32RetVal);
77 
87 sint8 nm_spi_write_reg(uint32 u32Addr, uint32 u32Val);
88 
100 sint8 nm_spi_read_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz);
101 
113 sint8 nm_spi_write_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz);
114 
115 #ifdef __cplusplus
116  }
117 #endif
118 
119 #endif /* _NMSPI_H_ */
This module contains common APIs declarations.
signed char sint8
Range of values between -128 to 127.
Definition: nm_bsp.h:111
sint8 nm_spi_read_reg_with_ret(uint32 u32Addr, uint32 *pu32RetVal)
unsigned short uint16
Range of values between 0 to 65535.
Definition: nm_bsp.h:96
sint8 nm_spi_write_reg(uint32 u32Addr, uint32 u32Val)
sint8 nm_spi_init(void)
Initialize the SPI.
sint8 nm_spi_write_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
uint32 nm_spi_read_reg(uint32 u32Addr)
unsigned long uint32
Range of values between 0 to 4294967295.
Definition: nm_bsp.h:103
unsigned char uint8
Range of values between 0 to 255.
Definition: nm_bsp.h:89
sint8 nm_spi_read_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
sint8 nm_spi_deinit(void)
DeInitialize the SPI.


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:04