Bridle API 4.1.99
A Zephyr based application framework
Loading...
Searching...
No Matches

This section groups all the functions concerning main serial interface management (not auxiliary) More...

Functions

int32_t stk8ba58_pin_int1_mode_set (const struct i2c_dt_spec *i2c, stk8ba58_pp_od_t val)
 Push-pull/open-drain selection on interrupt pad.
 
int32_t stk8ba58_pin_int1_mode_get (const struct i2c_dt_spec *i2c, stk8ba58_pp_od_t *val)
 Push-pull/open-drain selection on interrupt pad.
 
int32_t stk8ba58_pin_int1_polarity_set (const struct i2c_dt_spec *i2c, stk8ba58_hl_active_t val)
 Polarity active-high/-low selection on interrupt pad.
 
int32_t stk8ba58_pin_int1_polarity_get (const struct i2c_dt_spec *i2c, stk8ba58_hl_active_t *val)
 Polarity active-high/-low selection on interrupt pad.
 
int32_t stk8ba58_int_notification_set (const struct i2c_dt_spec *i2c, stk8ba58_intlatch_t val)
 Latched/pulsed interrupt.
 
int32_t stk8ba58_int_notification_get (const struct i2c_dt_spec *i2c, stk8ba58_intlatch_t *val)
 Latched/pulsed interrupt.
 
int32_t stk8ba58_pin_int1_route_set (const struct i2c_dt_spec *i2c, stk8ba58_pin_int1_route_t val)
 Select the signal that need to route on int1 pad.
 
int32_t stk8ba58_pin_int1_route_get (const struct i2c_dt_spec *i2c, stk8ba58_pin_int1_route_t *val)
 Select the signal that need to route on int1 pad.
 
int32_t stk8ba58_int_enable_set (const struct i2c_dt_spec *i2c, stk8ba58_int_enable_t val)
 Enable the source that need to trigger interrupt.
 
int32_t stk8ba58_int_enable_get (const struct i2c_dt_spec *i2c, stk8ba58_int_enable_t *val)
 Enable the source that need to trigger interrupt.
 

Detailed Description

This section groups all the functions concerning main serial interface management (not auxiliary)

Function Documentation

◆ stk8ba58_int_enable_get()

int32_t stk8ba58_int_enable_get ( const struct i2c_dt_spec *  i2c,
stk8ba58_int_enable_t val 
)

#include <drivers/sensor/sensortek/stk8ba58/stk8ba58_reg.c>

Enable the source that need to trigger interrupt.

[get]

Parameters
i2cRead / write interface definitions.(ptr)
valGet union of registers from INTEN1 to INTEN2.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

◆ stk8ba58_int_enable_set()

int32_t stk8ba58_int_enable_set ( const struct i2c_dt_spec *  i2c,
stk8ba58_int_enable_t  val 
)

#include <drivers/sensor/sensortek/stk8ba58/stk8ba58_reg.c>

Enable the source that need to trigger interrupt.

[get]

Parameters
i2cRead / write interface definitions.(ptr)
valChange union of registers from INTEN1 to INTEN2.
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

◆ stk8ba58_int_notification_get()

int32_t stk8ba58_int_notification_get ( const struct i2c_dt_spec *  i2c,
stk8ba58_intlatch_t val 
)

#include <drivers/sensor/sensortek/stk8ba58/stk8ba58_reg.c>

Latched/pulsed interrupt.

[get]

Parameters
i2cRead / write interface definitions.(ptr)
valGet the values of int-latch in reg INTCFG2.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

◆ stk8ba58_int_notification_set()

int32_t stk8ba58_int_notification_set ( const struct i2c_dt_spec *  i2c,
stk8ba58_intlatch_t  val 
)

#include <drivers/sensor/sensortek/stk8ba58/stk8ba58_reg.c>

Latched/pulsed interrupt.

[set]

Parameters
i2cRead / write interface definitions.(ptr)
valChange the values of int-latch in reg INTCFG2.
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

◆ stk8ba58_pin_int1_mode_get()

int32_t stk8ba58_pin_int1_mode_get ( const struct i2c_dt_spec *  i2c,
stk8ba58_pp_od_t val 
)

#include <drivers/sensor/sensortek/stk8ba58/stk8ba58_reg.c>

Push-pull/open-drain selection on interrupt pad.

[get]

Parameters
i2cRead / write interface definitions.(ptr)
valGet the values of int1_od in reg INTCFG1.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

◆ stk8ba58_pin_int1_mode_set()

int32_t stk8ba58_pin_int1_mode_set ( const struct i2c_dt_spec *  i2c,
stk8ba58_pp_od_t  val 
)

#include <drivers/sensor/sensortek/stk8ba58/stk8ba58_reg.c>

Push-pull/open-drain selection on interrupt pad.

[set]

Parameters
i2cRead / write interface definitions.(ptr)
valChange the values of int1_od in reg INTCFG1.
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

◆ stk8ba58_pin_int1_polarity_get()

int32_t stk8ba58_pin_int1_polarity_get ( const struct i2c_dt_spec *  i2c,
stk8ba58_hl_active_t val 
)

#include <drivers/sensor/sensortek/stk8ba58/stk8ba58_reg.c>

Polarity active-high/-low selection on interrupt pad.

[get]

Parameters
i2cRead / write interface definitions.(ptr)
valGet the values of int1_lv in reg INTCFG1.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

◆ stk8ba58_pin_int1_polarity_set()

int32_t stk8ba58_pin_int1_polarity_set ( const struct i2c_dt_spec *  i2c,
stk8ba58_hl_active_t  val 
)

#include <drivers/sensor/sensortek/stk8ba58/stk8ba58_reg.c>

Polarity active-high/-low selection on interrupt pad.

[set]

Parameters
i2cRead / write interface definitions.(ptr)
valChange the values of int1_lv in reg INTCFG1.
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

◆ stk8ba58_pin_int1_route_get()

int32_t stk8ba58_pin_int1_route_get ( const struct i2c_dt_spec *  i2c,
stk8ba58_pin_int1_route_t val 
)

#include <drivers/sensor/sensortek/stk8ba58/stk8ba58_reg.c>

Select the signal that need to route on int1 pad.

[get]

Parameters
i2cRead / write interface definitions.(ptr)
valGet union of registers from INTMAP1 to INTMAP2.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).

◆ stk8ba58_pin_int1_route_set()

int32_t stk8ba58_pin_int1_route_set ( const struct i2c_dt_spec *  i2c,
stk8ba58_pin_int1_route_t  val 
)

#include <drivers/sensor/sensortek/stk8ba58/stk8ba58_reg.c>

Select the signal that need to route on int1 pad.

[set]

Parameters
i2cRead / write interface definitions.(ptr)
valChange union of registers from INTMAP1 to INTMAP2.
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).