![]() |
STM8L libraries for CR95HF 1.0
|
Functions | |
u8 | CR95HF_Modify_Baud_Rate (const u8 New_Baud_Rate) |
This function is a procedure to change Baud_Rate in UART communication. The function calls the Baud_Rate function and changes the MCU internal baud rate. In case of failure the function tries to recover the communication by returning into the previous baud rate or into the default baud rate. | |
u8 | CR95HF_Idle_Detector_Calibration (CR95HF_Protocol_Config *Protocol_Settings, CR95HF_Idle_Config *Idle_Config) |
The purpose of this function is to perform the detector calibration according to the Application Note : |
u8 CR95HF_Idle_Detector_Calibration | ( | CR95HF_Protocol_Config * | Protocol_Settings, |
CR95HF_Idle_Config * | Idle_Config | ||
) |
The purpose of this function is to perform the detector calibration according to the Application Note :
Protocol_Settings | : pointer on the structure to update the protocol select. (Turn RF field off) |
Idle_Config | : pointer on the structure to write the High compare value and low compare value for tag detection and the last wake up reason |
CR95HF_SUCCESS_CODE | : command succeed |
CR95HF_ERROR_CODE | : command failed |
u8 CR95HF_Modify_Baud_Rate | ( | const u8 | New_Baud_Rate | ) |
This function is a procedure to change Baud_Rate in UART communication. The function calls the Baud_Rate function and changes the MCU internal baud rate. In case of failure the function tries to recover the communication by returning into the previous baud rate or into the default baud rate.
CR95HF_SUCCESS_CODE | : The command is successful |
CR95HF_BAUd_RATE_FAILED_PREVIOUS_VALUE_ON | : The command failed but keep transmission with the previous baud rate |
CR95HF_BAUD_RATE_FAILED_DEFAULT_VALUE_ON | : The command failed and did not manage to keep previous baud rate. Default baud rate is on. |
CR95HF_ERROR_CODE,: | unsuccessful command, UART communication may be lost. |