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_Common

This section groups common useful functions. More...

Functions

int32_t stts751_smbus_timeout_set (stts751_ctx_t *ctx, uint8_t val)
 SMBus timeout.At power-up, the STTS751 is configured with an SMBus timeout of 25 to 35 milliseconds.
int32_t stts751_smbus_timeout_get (stts751_ctx_t *ctx, uint8_t *val)
 SMBus timeout.At power-up, the STTS751 is configured with an SMBus timeout of 25 to 35 milliseconds.
int32_t stts751_device_id_get (stts751_ctx_t *ctx, stts751_id_t *buff)
 Device Who am I.

Detailed Description

This section groups common useful functions.


Function Documentation

int32_t stts751_device_id_get ( stts751_ctx_t *  ctx,
stts751_id_t *  buff 
)

Device Who am I.

[get]

Parameters:
ctxread / write interface definitions
buffbuffer that stores data read
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 687 of file stts751_reg.c.

int32_t stts751_smbus_timeout_get ( stts751_ctx_t *  ctx,
uint8_t *  val 
)

SMBus timeout.At power-up, the STTS751 is configured with an SMBus timeout of 25 to 35 milliseconds.

[get]

Parameters:
ctxread / write interface definitions
valget timeout bit in register SMBUS_TIMEOUT.
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 670 of file stts751_reg.c.

int32_t stts751_smbus_timeout_set ( stts751_ctx_t *  ctx,
uint8_t  val 
)

SMBus timeout.At power-up, the STTS751 is configured with an SMBus timeout of 25 to 35 milliseconds.

[set]

Parameters:
ctxread / write interface definitions
valset timeout bit in register SMBUS_TIMEOUT.
Return values:
interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 648 of file stts751_reg.c.