STM8L libraries for CR95HF 1.0
Functions
M24LRXX_EH_Command_Parameter_Function
M24LRXX_EH_Support_Functions

Functions

u8 M24LRXX_Compute_Configuration_Byte (u8 RF_WIP_BUSY, u8 EH_Enable, u8 EH_Range)
 The purpose of this function is to compute the configuration byte for energy harvesting mode given the parameters Energy Harvesting activation and range.

Function Documentation

u8 M24LRXX_Compute_Configuration_Byte ( u8  RF_WIP_BUSY,
u8  EH_Enable,
u8  EH_Range 
)

The purpose of this function is to compute the configuration byte for energy harvesting mode given the parameters Energy Harvesting activation and range.

Parameters:
RF_WIP_BUSY,:RF Write in Progress or RF busy either M24LRXX_CONFIGURATION_BYTE_RF_BUSY or M24LRXX_CONFIGURATION_BYTE_RF_WIP.
EH_Enable: Energy Harvesting enabled or disable, either M24LRXX_CONFIGURATION_BYTE_EH_ENABLED or M24LRXX_CONFIGURATION_BYTE_EH_DISABLED.
EH_Range: Range of power available on the Vout output : among the value
  • M24LRXX_CONFIGURATION_BYTE_RANGE_6_MA
  • M24LRXX_CONFIGURATION_BYTE_RANGE_3_MA
  • M24LRXX_CONFIGURATION_BYTE_RANGE_1_MA
  • M24LRXX_CONFIGURATION_BYTE_RANGE_300_UA.
Return values:
configuration_byte: the configuration byte computed to send within the write_DO_Cfg and the Write_EH_Cfg commands.
 All Data Structures Files Functions Variables Defines