| Zakładka z wyszukiwarką danych komponentów |
|
AN4124 Arkusz danych(PDF) 22 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4124 Arkusz danych(HTML) 22 Page - STMicroelectronics |
|
22 / 32 page ![]() Redundancy and functions AN4124 22/32 Doc ID 023294 Rev 2 /* Read the critical fault latched state */ break; case 3 : *CFS_Value = (FCCU.CFS3.R >> (CFS_number%32)) & 1; /* Read the critical fault latched state */ break; default: *CFS_Value = (FCCU.CFS3.R >> (CFS_number%32)) & 1; /* Read the critical fault latched state */ break; } exit_value = 1; /* Returned value = SUCCESS */ } else { /* ERROR*/ }; return(exit_value); } A.2.5 Clear fault uit32_t FCCU_CFS_Clear(uint32_t CFS_number){ uint32_t exit_value= 0; /* Returned value = ERROR */ uint32_t Reg_Selection = 0; /* Register Selection [0..3] */ uint32_t Support = 0; /* Support variable */ uint32_t CFS_Value; if (CFS_number <= 127){ Reg_Selection = (CFS_number/32); /* INT(CFS_number/32)*/ switch (Reg_Selection){ case 0 : Support = FCCU.CF_CFG0.R; break; case 1 : Support = FCCU.CF_CFG1.R; break; case 2 : Support = FCCU.CF_CFG2.R; break; case 3 : Support = FCCU.CF_CFG3.R; break; default: Support = FCCU.CF_CFG3.R; break; } Support = (Support >> (CFS_number%32)) & 0x1; if (Support == CFG_SW){ /* SW recoverable fault*/ do{ switch (Reg_Selection){ case 0 : FCCU.CFK.R = CFK_Key; /* set the Critical fault key */ FCCU.CFS0.R = (uint32_t) (1 << (CFS_number%32)); /* reset the critical fault state */ break; case 1 : FCCU.CFK.R = CFK_Key; /* set the Critical fault key */ FCCU.CFS1.R = (uint32_t) (1 << (CFS_number%32)); /* reset the critical fault state */ break; case 2 : FCCU.CFK.R = CFK_Key; /* set the Critical fault key */ FCCU.CFS2.R = (uint32_t) (1 << (CFS_number%32)); /* reset the critical fault state */ break; case 3 : FCCU.CFK.R = CFK_Key; /* set the Critical fault key */ FCCU.CFS3.R = (uint32_t) (1 << (CFS_number%32)); /* reset the critical fault state */ break; default: FCCU.CFK.R = CFK_Key; /* set the Critical fault key */ FCCU.CFS3.R = (uint32_t) (1 << (CFS_number%32)); /* reset the critical fault state */ |
|
Link URL |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |