FW Profile - C1 Implementation
FwDaHwDev.c File Reference

Implementation of HW Device State Machine. More...

Go to the source code of this file.

Functions

FwSmDesc_t GetHwDevSm ()
 Retrieve the descriptor of the Hardware Device State Machine. More...
 
float GetHwDevTemp ()
 This function returns the temperature of the Hardware Device. More...
 
float GetHwDevCur ()
 This function returns the current absorbed by the Hardware Device. More...
 

Detailed Description

Implementation of HW Device State Machine.

Author
V. Cechticky and A. Pasetti

Definition in file FwDaHwDev.c.

Function Documentation

float GetHwDevCur ( )

This function returns the current absorbed by the Hardware Device.

In this demo application, the current is modelled as a stochastic variable which is uniformly distributed in the interval: [0, HW_DEV_CUR_MAX].

Returns
the current absorbed by the Hardware Device.

Definition at line 129 of file FwDaHwDev.c.

FwSmDesc_t GetHwDevSm ( )

Retrieve the descriptor of the Hardware Device State Machine.

The Hardware Device State Machine is a singleton. The first time this function is called, it creates and configures the state machine descriptor. Subsequently, it always returns the same descriptor.

Returns
the descriptor of the HW Device State Machine or NULL if the state machine could not be created.

Definition at line 92 of file FwDaHwDev.c.

float GetHwDevTemp ( )

This function returns the temperature of the Hardware Device.

In this demo application, the temperature is modelled as a stochastic variable which is uniformly distributed in the interval: [0, HW_DEV_TEMP_MAX].

Returns
the temperature of the Hardware Device.

Definition at line 124 of file FwDaHwDev.c.

P&P Software GmbH, Copyright 2011, All Rights Reserved