OpenBIC
OpenSource Bridge-IC
hal_peci.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <drivers/peci.h>
#include "hal_peci.h"
#include "libutil.h"
#include <logging/log.h>
Include dependency graph for hal_peci.c:

Functions

 LOG_MODULE_REGISTER (hal_peci)
 
int peci_init ()
 
int peci_ping (uint8_t address)
 
int peci_xfer_with_retries (struct peci_msg *msg)
 
int peci_cmd_xfer (struct peci_msg *msg)
 
int peci_read (uint8_t cmd, uint8_t address, uint8_t u8Index, uint16_t u16Param, uint8_t u8ReadLen, uint8_t *readBuf)
 
int peci_write (uint8_t cmd, uint8_t address, uint8_t u8ReadLen, uint8_t *readBuf, uint8_t u8WriteLen, uint8_t *writeBuf)
 

Variables

const struct device * dev
 
struct k_mutex peci_lock
 
struct k_timer retry_timer
 

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( hal_peci  )

◆ peci_cmd_xfer()

int peci_cmd_xfer ( struct peci_msg *  msg)
Here is the call graph for this function:

◆ peci_init()

int peci_init ( )

◆ peci_ping()

int peci_ping ( uint8_t  address)

◆ peci_read()

int peci_read ( uint8_t  cmd,
uint8_t  address,
uint8_t  u8Index,
uint16_t  u16Param,
uint8_t  u8ReadLen,
uint8_t *  readBuf 
)
Here is the call graph for this function:

◆ peci_write()

int peci_write ( uint8_t  cmd,
uint8_t  address,
uint8_t  u8ReadLen,
uint8_t *  readBuf,
uint8_t  u8WriteLen,
uint8_t *  writeBuf 
)
Here is the call graph for this function:

◆ peci_xfer_with_retries()

int peci_xfer_with_retries ( struct peci_msg *  msg)

Variable Documentation

◆ dev

const struct device* dev

◆ peci_lock

struct k_mutex peci_lock

◆ retry_timer

struct k_timer retry_timer