no-OS
Functions | Variables
wrapper.c File Reference
#include "no_os_timer.h"
#include "wrapper.h"
#include "no_os_i2c.h"
#include "tx_lib.h"
#include "tx_isr.h"
#include "no_os_alloc.h"
Include dependency graph for wrapper.c:

Functions

UINT16 Cec_Notification (UCHAR Event, UINT16 Len, void *Buff)
 
UINT32 ATV_GetElapsedMs (UINT32 StartCount, UINT32 *CurrMsCount)
 
UINT32 ATV_GetMsCountNZ (void)
 
UCHAR ATV_I2CReadField8 (UCHAR DevAddr, UCHAR RegAddr, UCHAR Mask, UCHAR BitPos)
 
void ATV_I2CWriteField8 (UCHAR DevAddr, UCHAR RegAddr, UCHAR Mask, UCHAR BitPos, UCHAR FieldVal)
 
UINT32 ATV_I2CReadField32 (UCHAR DevAddr, UCHAR RegAddr, UCHAR MsbMask, UCHAR LsbMask, UCHAR LsbPos, UCHAR FldSpan)
 
UINT32 ATV_I2CReadField32LE (UCHAR DevAddr, UCHAR RegAddr, UCHAR MsbMask, UCHAR LsbMask, UCHAR LsbPos, UCHAR FldSpan)
 
void ATV_I2CWriteField32 (UCHAR DevAddr, UCHAR RegAddr, UCHAR MsbMask, UCHAR LsbMask, UCHAR LsbPos, UCHAR FldSpan, UINT32 Val)
 
void ATV_I2CWriteFields (UCHAR *Table, UCHAR EndVal)
 
void ATV_I2CWriteField32LE (UCHAR DevAddr, UCHAR RegAddr, UCHAR MsbMask, UCHAR LsbMask, UCHAR LsbPos, UCHAR FldSpan, UINT32 Val)
 
void ATV_I2CWriteTable (UCHAR *Table, UCHAR EndVal)
 
UINT16 ATV_LookupValue8 (UCHAR *Table, UCHAR Value, UCHAR EndVal, UINT16 Step)
 
void ATV_PrintTime (char *Prefix, UCHAR Gran, char *Postfix)
 
void HAL_DelayMs (UINT16 Counter)
 
UINT16 HAL_I2CReadBlock (UCHAR Dev, UCHAR Reg, UCHAR *Data, UINT16 NofBytes)
 
UINT16 HAL_I2CWriteBlock (UCHAR Dev, UCHAR Reg, UCHAR *Data, UINT16 NumberBytes)
 
UCHAR HAL_I2CReadByte (UCHAR Dev, UCHAR Reg, UCHAR *Data)
 
UCHAR HAL_I2CWriteByte (UCHAR Dev, UCHAR Reg, UCHAR Data)
 
UCHAR HAL_SetRxChipSelect (UCHAR DevIdx)
 
void WaitMilliSec (unsigned int msec)
 
ATV_ERR CEC_Reset (void)
 
ATV_ERR CEC_Enable (BOOL Enable)
 
ATV_ERR CEC_SetLogicalAddr (UCHAR LogAddr, UCHAR DevId, BOOL Enable)
 
ATV_ERR CEC_SendMessage (UCHAR *MsgPtr, UCHAR MsgLen)
 
ATV_ERR CEC_SendMessageOut (void)
 
ATV_ERR CEC_ResendLastMessage (void)
 
void CEC_Isr (CEC_INTERRUPTS *CecInts)
 
ATV_ERR CEC_AllocateLogAddr (UCHAR *LogAddrList)
 
BOOL HAL_GetMBSwitchState ()
 
uint32_t HAL_GetCurrentMsCount ()
 
void uart_int_handler (void *instance)
 
bool HAL_TxIntPending ()
 

Variables

CONSTANT UINT16 VicInfo [NUM_OF_VICS *4]
 
struct no_os_i2c_desci2c_handler
 
volatile uint32_t timer_counter_intr = 0
 
STATIC UINT32 MsCnt = 0
 
STATIC UINT32 Last250usCount = 0
 
STATIC uint8_t CecTxState
 
STATIC uint8_t CecCurrOper
 
STATIC uint8_t CecRxMessage [CEC_MAX_MSG_SIZE+4]
 
STATIC uint8_t CecRetryCount
 
STATIC uint8_t OperBuf [32]
 
STATIC uint8_t BufIdx
 
STATIC uint8_t SrcLogAddr
 
STATIC struct cec_status cec_status
 

Function Documentation

◆ ATV_GetElapsedMs()

UINT32 ATV_GetElapsedMs ( UINT32  StartCount,
UINT32 CurrMsCount 
)
Here is the caller graph for this function:

◆ ATV_GetMsCountNZ()

UINT32 ATV_GetMsCountNZ ( void  )
Here is the caller graph for this function:

◆ ATV_I2CReadField32()

UINT32 ATV_I2CReadField32 ( UCHAR  DevAddr,
UCHAR  RegAddr,
UCHAR  MsbMask,
UCHAR  LsbMask,
UCHAR  LsbPos,
UCHAR  FldSpan 
)

◆ ATV_I2CReadField32LE()

UINT32 ATV_I2CReadField32LE ( UCHAR  DevAddr,
UCHAR  RegAddr,
UCHAR  MsbMask,
UCHAR  LsbMask,
UCHAR  LsbPos,
UCHAR  FldSpan 
)

◆ ATV_I2CReadField8()

UCHAR ATV_I2CReadField8 ( UCHAR  DevAddr,
UCHAR  RegAddr,
UCHAR  Mask,
UCHAR  BitPos 
)

◆ ATV_I2CWriteField32()

void ATV_I2CWriteField32 ( UCHAR  DevAddr,
UCHAR  RegAddr,
UCHAR  MsbMask,
UCHAR  LsbMask,
UCHAR  LsbPos,
UCHAR  FldSpan,
UINT32  Val 
)

◆ ATV_I2CWriteField32LE()

void ATV_I2CWriteField32LE ( UCHAR  DevAddr,
UCHAR  RegAddr,
UCHAR  MsbMask,
UCHAR  LsbMask,
UCHAR  LsbPos,
UCHAR  FldSpan,
UINT32  Val 
)

◆ ATV_I2CWriteField8()

void ATV_I2CWriteField8 ( UCHAR  DevAddr,
UCHAR  RegAddr,
UCHAR  Mask,
UCHAR  BitPos,
UCHAR  FieldVal 
)

◆ ATV_I2CWriteFields()

void ATV_I2CWriteFields ( UCHAR Table,
UCHAR  EndVal 
)

◆ ATV_I2CWriteTable()

void ATV_I2CWriteTable ( UCHAR Table,
UCHAR  EndVal 
)

◆ ATV_LookupValue8()

UINT16 ATV_LookupValue8 ( UCHAR Table,
UCHAR  Value,
UCHAR  EndVal,
UINT16  Step 
)

◆ ATV_PrintTime()

void ATV_PrintTime ( char *  Prefix,
UCHAR  Gran,
char *  Postfix 
)

◆ CEC_AllocateLogAddr()

ATV_ERR CEC_AllocateLogAddr ( UCHAR LogAddrList)

◆ CEC_Enable()

ATV_ERR CEC_Enable ( BOOL  Enable)

◆ CEC_Isr()

void CEC_Isr ( CEC_INTERRUPTS CecInts)

◆ Cec_Notification()

UINT16 Cec_Notification ( UCHAR  Event,
UINT16  Len,
void *  Buff 
)

◆ CEC_ResendLastMessage()

ATV_ERR CEC_ResendLastMessage ( void  )

◆ CEC_Reset()

ATV_ERR CEC_Reset ( void  )

◆ CEC_SendMessage()

ATV_ERR CEC_SendMessage ( UCHAR MsgPtr,
UCHAR  MsgLen 
)
Here is the caller graph for this function:

◆ CEC_SendMessageOut()

ATV_ERR CEC_SendMessageOut ( void  )

◆ CEC_SetLogicalAddr()

ATV_ERR CEC_SetLogicalAddr ( UCHAR  LogAddr,
UCHAR  DevId,
BOOL  Enable 
)

◆ HAL_DelayMs()

void HAL_DelayMs ( UINT16  Counter)

◆ HAL_GetCurrentMsCount()

uint32_t HAL_GetCurrentMsCount ( )

Get the current microseconds count from the timer variable.

Parameters
void
Returns
number of microseconds
Here is the caller graph for this function:

◆ HAL_GetMBSwitchState()

BOOL HAL_GetMBSwitchState ( )

Return switch state.

Parameters
void
Returns
bool value corresponding to the switch state.

◆ HAL_I2CReadBlock()

UINT16 HAL_I2CReadBlock ( UCHAR  Dev,
UCHAR  Reg,
UCHAR Data,
UINT16  NofBytes 
)
Here is the caller graph for this function:

◆ HAL_I2CReadByte()

UCHAR HAL_I2CReadByte ( UCHAR  Dev,
UCHAR  Reg,
UCHAR Data 
)
Here is the caller graph for this function:

◆ HAL_I2CWriteBlock()

UINT16 HAL_I2CWriteBlock ( UCHAR  Dev,
UCHAR  Reg,
UCHAR Data,
UINT16  NumberBytes 
)
Here is the caller graph for this function:

◆ HAL_I2CWriteByte()

UCHAR HAL_I2CWriteByte ( UCHAR  Dev,
UCHAR  Reg,
UCHAR  Data 
)
Here is the caller graph for this function:

◆ HAL_SetRxChipSelect()

UCHAR HAL_SetRxChipSelect ( UCHAR  DevIdx)

◆ HAL_TxIntPending()

bool HAL_TxIntPending ( )

Returns the status of the interrupts asserted in the ADV7511 IC.

Parameters
void
Returns
status of the ADV7511 interrupts

◆ uart_int_handler()

void uart_int_handler ( void *  instance)

Wrapper for the UART ISR.

Uses the PS UART driver if it exists, else uses the PL UART one.

Parameters
[in]instance- Pointer to the UART driver handler passed by the application.
Returns
void

◆ WaitMilliSec()

void WaitMilliSec ( unsigned int  msec)

Wait for passed number of milli-seconds

Here is the caller graph for this function:

Variable Documentation

◆ BufIdx

STATIC uint8_t BufIdx

◆ cec_status

◆ CecCurrOper

STATIC uint8_t CecCurrOper

◆ CecRetryCount

STATIC uint8_t CecRetryCount

◆ CecRxMessage

STATIC uint8_t CecRxMessage[CEC_MAX_MSG_SIZE+4]

◆ CecTxState

STATIC uint8_t CecTxState

◆ i2c_handler

struct no_os_i2c_desc* i2c_handler

◆ Last250usCount

STATIC UINT32 Last250usCount = 0

◆ MsCnt

STATIC UINT32 MsCnt = 0

◆ OperBuf

STATIC uint8_t OperBuf[32]

◆ SrcLogAddr

STATIC uint8_t SrcLogAddr

◆ timer_counter_intr

volatile uint32_t timer_counter_intr = 0

◆ VicInfo