Low voltage digital temperature sensor

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_IKS01A3 X_NUCLEO_IKS01A3 X_NUCLEO_IKS01A3

Embed: (wiki syntax)

« Back to documentation index

STTS751_Interfaces_Functions

STTS751_Interfaces_Functions
[over temperature alarm]

This section provide a set of functions used to read and write a generic register of the device. More...

Functions

int32_t stts751_read_reg (stts751_ctx_t *ctx, uint8_t reg, uint8_t *data, uint16_t len)
 Read generic device register.
int32_t stts751_write_reg (stts751_ctx_t *ctx, uint8_t reg, uint8_t *data, uint16_t len)
 Write generic device register.

Detailed Description

This section provide a set of functions used to read and write a generic register of the device.

MANDATORY: return 0 -> no Error.


Function Documentation

int32_t stts751_read_reg ( stts751_ctx_t *  ctx,
uint8_t  reg,
uint8_t *  data,
uint16_t  len 
)

Read generic device register.

Parameters:
ctxread / write interface definitions(ptr)
regregister to read
datapointer to buffer that store the data read(ptr)
lennumber of consecutive register to read
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 66 of file stts751_reg.c.

int32_t stts751_write_reg ( stts751_ctx_t *  ctx,
uint8_t  reg,
uint8_t *  data,
uint16_t  len 
)

Write generic device register.

Parameters:
ctxread / write interface definitions(ptr)
regregister to write
datapointer to data to write in register reg(ptr)
lennumber of consecutive register to write
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 84 of file stts751_reg.c.