Zephyr API 3.6.99
Loading...
Searching...
No Matches
tle9104.h File Reference
#include <stdbool.h>
#include <zephyr/device.h>

Go to the source code of this file.

Data Structures

struct  gpio_tle9104_channel_diagnostics
 

Macros

#define TLE9104_GPIO_COUNT   4
 

Enumerations

enum  tle9104_on_state_diagnostics {
  TLE9104_ONDIAG_OT = 5 , TLE9104_ONDIAG_OCTIME = 4 , TLE9104_ONDIAG_OCOT = 3 , TLE9104_ONDIAG_SCB = 2 ,
  TLE9104_ONDIAG_NOFAIL = 1 , TLE9104_ONDIAG_UNKNOWN = 0
}
 
enum  tle9104_off_state_diagnostics { TLE9104_OFFDIAG_SCG = 3 , TLE9104_OFFDIAG_OL = 2 , TLE9104_OFFDIAG_NOFAIL = 1 , TLE9104_OFFDIAG_UNKNOWN = 0 }
 

Functions

int tle9104_get_diagnostics (const struct device *dev, struct gpio_tle9104_channel_diagnostics diag[4])
 get the diagnostics of the outputs
 
int tle9104_clear_diagnostics (const struct device *dev)
 clear the diagnostics of the outputs
 
int tle9104_write_state (const struct device *dev, uint8_t state)
 write output state
 

Macro Definition Documentation

◆ TLE9104_GPIO_COUNT

#define TLE9104_GPIO_COUNT   4

Enumeration Type Documentation

◆ tle9104_off_state_diagnostics

Enumerator
TLE9104_OFFDIAG_SCG 
TLE9104_OFFDIAG_OL 
TLE9104_OFFDIAG_NOFAIL 
TLE9104_OFFDIAG_UNKNOWN 

◆ tle9104_on_state_diagnostics

Enumerator
TLE9104_ONDIAG_OT 
TLE9104_ONDIAG_OCTIME 
TLE9104_ONDIAG_OCOT 
TLE9104_ONDIAG_SCB 
TLE9104_ONDIAG_NOFAIL 
TLE9104_ONDIAG_UNKNOWN 

Function Documentation

◆ tle9104_clear_diagnostics()

int tle9104_clear_diagnostics ( const struct device * dev)

clear the diagnostics of the outputs

Parameters
devinstance of TLE9104
Return values
0If successful.

◆ tle9104_get_diagnostics()

int tle9104_get_diagnostics ( const struct device * dev,
struct gpio_tle9104_channel_diagnostics diag[4] )

get the diagnostics of the outputs

Parameters
devinstance of TLE9104
diagdestination where the result is written to
Return values
0If successful.

◆ tle9104_write_state()

int tle9104_write_state ( const struct device * dev,
uint8_t state )

write output state

Parameters
devinstance of TLE9104
stateoutput state, each bit represents on output
Return values
0If successful.