![]() |
STM8L libraries for CR95HF 1.0
|
Functions | |
u8 | CR95HF_IsReaderResultOK (CR95HF_ResponseReceiving *Response, const u8 Code_OK) |
This function checks if the CR95HF has answered a success code. | |
u8 | CR95HF_Is_IRQin_Interrupt_Wake_up_Condition (const u8 WUFlags) |
This function is related to the idle mode. Its first goal is to determine whether an interrupt on IRQ_in is a wakeup condition (For instance if the CR95HF is in idle Mode, this function could also be called to determine which way to use to wake up the CR95HF).It can also be called once the CR95HF has woken up to determine if the CR95HF woke up because of timeout.Note that for the first case the WuFlags issued for the Idle command sould be given as input parameter (available in the CR95HF_Idle_Config structure) and for the second the case afther having issued CR95HF_Rd_Wake_up_Reg the last_reason_of_wakeup field of the CR95HF_Idle_Config structure may be used as input parameter. | |
u8 | CR95HF_Is_NSS_Interrupt_Wake_up_Condition (const u8 WUFlags) |
This function is related to the idle mode. Its first goal is to determine whether an interrupt on NSS is a wakeup condition (For instance if the CR95HF is in idle Mode, this function could also be called to determine which way to use to wake up the CR95HF).It can also be called once the CR95HF has woken up to determine if the CR95HF woke up because of timeout.Note that for the first case the WuFlags issued for the Idle command sould be given as input parameter (available in the CR95HF_Idle_Config structure) and for the second the case afther having issued CR95HF_Rd_Wake_up_Reg the last_reason_of_wakeup field of the CR95HF_Idle_Config structure may be used as input parameter. | |
u8 | CR95HF_Is_Tag_Detected_Wake_up_Condition (const u8 WUFlags) |
This function is related to the idle mode. Its first goal is to determine whether a tag detection is a wakeup condition (For instance if the CR95HF is in idle Mode, this function could also be called to determine which way to use to wake up the CR95HF).It can also be called once the CR95HF has woken up to determine if the CR95HF woke up because of timeout.Note that for the first case the WuFlags issued for the Idle command sould be given as input parameter (available in the CR95HF_Idle_Config structure) and for the second the case afther having issued CR95HF_Rd_Wake_up_Reg the last_reason_of_wakeup field of the CR95HF_Idle_Config structure may be used as input parameter. | |
u8 | CR95HF_Is_Timeout_Wake_up_Condition (const u8 WUFlags) |
This function is related to the idle mode. Its goal is to determine whether the internal timer is a wakeup condition (For instance if the CR95HF is in idle Mode, this fucntion could be called to determine which way to use to wake up the CR95HF).It can also be called once the CR95HF has woken up to determine if the CR95HF woke up because of timeout.Note that for the first case the WuFlags issued for the Idle command sould be given as input parameter (available in the CR95HF_Idle_Config structure) and for the second the case afther having issued CR95HF_Rd_Wake_up_Reg the last_reason_of_wakeup field of the CR95HF_Idle_Config structure may be used as input parameter. |
u8 CR95HF_Is_IRQin_Interrupt_Wake_up_Condition | ( | const u8 | WUFlags | ) |
This function is related to the idle mode. Its first goal is to determine whether an interrupt on IRQ_in is a wakeup condition (For instance if the CR95HF is in idle Mode, this function could also be called to determine which way to use to wake up the CR95HF).It can also be called once the CR95HF has woken up to determine if the CR95HF woke up because of timeout.Note that for the first case the WuFlags issued for the Idle command sould be given as input parameter (available in the CR95HF_Idle_Config structure) and for the second the case afther having issued CR95HF_Rd_Wake_up_Reg the last_reason_of_wakeup field of the CR95HF_Idle_Config structure may be used as input parameter.
WUFlags | : the byte containing the expected data : either the last_reason_of_wakeup field of the CR95HF_Idle_Config structure or the WuFlags used for the Idle command (also available in the CR95HF_Idle_Config structure |
FALSE_CODE | : an interrupt on IRQ_in is not a wakeup condition/ was not the reason of awakening. |
TRUE_CODE | : an interrupt on IRQ_in is a wakeup condition / was the reason of awakening. |
u8 CR95HF_Is_NSS_Interrupt_Wake_up_Condition | ( | const u8 | WUFlags | ) |
This function is related to the idle mode. Its first goal is to determine whether an interrupt on NSS is a wakeup condition (For instance if the CR95HF is in idle Mode, this function could also be called to determine which way to use to wake up the CR95HF).It can also be called once the CR95HF has woken up to determine if the CR95HF woke up because of timeout.Note that for the first case the WuFlags issued for the Idle command sould be given as input parameter (available in the CR95HF_Idle_Config structure) and for the second the case afther having issued CR95HF_Rd_Wake_up_Reg the last_reason_of_wakeup field of the CR95HF_Idle_Config structure may be used as input parameter.
WUFlags | : the byte containing the expected data : either the last_reason_of_wakeup field of the CR95HF_Idle_Config structure or the WuFlags used for the Idle command (also available in the CR95HF_Idle_Config structure |
FALSE_CODE | : an interrupt on NSS is not a wakeup condition/ was not the reason of awakening. |
TRUE_CODE | : an interrupt on NSS is a wakeup condition / was the reason of awakening. |
u8 CR95HF_Is_Tag_Detected_Wake_up_Condition | ( | const u8 | WUFlags | ) |
This function is related to the idle mode. Its first goal is to determine whether a tag detection is a wakeup condition (For instance if the CR95HF is in idle Mode, this function could also be called to determine which way to use to wake up the CR95HF).It can also be called once the CR95HF has woken up to determine if the CR95HF woke up because of timeout.Note that for the first case the WuFlags issued for the Idle command sould be given as input parameter (available in the CR95HF_Idle_Config structure) and for the second the case afther having issued CR95HF_Rd_Wake_up_Reg the last_reason_of_wakeup field of the CR95HF_Idle_Config structure may be used as input parameter.
WUFlags | : the byte containing the expected data : either the last_reason_of_wakeup field of the CR95HF_Idle_Config structure or the WuFlags used for the Idle command (also available in the CR95HF_Idle_Config structure |
FALSE_CODE | : a tag detection is not a wakeup condition/ was not the reason of awakening. |
TRUE_CODE | : a tag detection is a wakeup condition / was the reason of awakening. |
u8 CR95HF_Is_Timeout_Wake_up_Condition | ( | const u8 | WUFlags | ) |
This function is related to the idle mode. Its goal is to determine whether the internal timer is a wakeup condition (For instance if the CR95HF is in idle Mode, this fucntion could be called to determine which way to use to wake up the CR95HF).It can also be called once the CR95HF has woken up to determine if the CR95HF woke up because of timeout.Note that for the first case the WuFlags issued for the Idle command sould be given as input parameter (available in the CR95HF_Idle_Config structure) and for the second the case afther having issued CR95HF_Rd_Wake_up_Reg the last_reason_of_wakeup field of the CR95HF_Idle_Config structure may be used as input parameter.
WUFlags | : the byte containing the expected data : either the last_reason_of_wakeup field of the CR95HF_Idle_Config structure or the WuFlags used for the Idle command (also available in the CR95HF_Idle_Config structure |
FALSE_CODE | : a timeout is not a wakeup condition/ was not the reason of awakening. |
TRUE_CODE | : a timeout is a wakeup condition / was the reason of awakening. |
u8 CR95HF_IsReaderResultOK | ( | CR95HF_ResponseReceiving * | Response, |
const u8 | Code_OK | ||
) |
This function checks if the CR95HF has answered a success code.
Response | : the structure to initialyze |
Code_OK | : reference value compared to the CR95HF reply |
TRUE_CODE | : CR95HF returned a succesful code |
FALSE_CODE,: | CR95HF didn't return a succesful code |