CLASSIC
Modul: fee
Rolle: constitutive
Konfidenz: 95%
SNIP_CLASSIC_FEE_SECTION_8_3_9_Fee_EraseImmediateBlock
Wortlaut
8.3.9 Fee_EraseImmediateBlock
[SWS_Fee_00094] Definition of API function Fee_EraseImmediateBlock
Upstream requirements: SRS_MemHwAb_14032
⌈
Service Name
Fee_EraseImmediateBlock
Syntax
Std_ReturnType Fee_EraseImmediateBlock (
uint16 BlockNumber
)
Service ID [hex]
0x09
Sync/Async
Asynchronous
Reentrancy
Non Reentrant
Parameters (in)
BlockNumber
Number of logical block, also denoting start address of that block
in EEPROM.
Parameters (inout)
None
Parameters (out)
None
Return value
Std_ReturnType
E_OK: The requested job has been accepted by the module.
E_NOT_OK: The requested job has not been accepted by the
module.
Description
Service to erase a logical block.
Available via
Fee.h
⌋
Note: The function Fee_EraseImmediateBlock shall only be called by e.g. diagnostic or similar system service to pre-erase the area for immediate data if necessary.
[SWS_Fee_00066]
Upstream requirements: SRS_MemHwAb_14009
⌈The function Fee_EraseImmediateBlock shall take the block number and calculate the corresponding memory block address.⌋
[SWS_Fee_00067]
Upstream requirements: SRS_MemHwAb_14013
⌈The function Fee_EraseImmediateBlock shall ensure that the FEE module can
write immediate data. Whether this involves physically erasing a memory area and
therefore calling the erase function of the underlying driver depends on the implementation of the module.⌋
[SWS_Fee_00127]
Upstream requirements: SRS_BSW_00406
⌈If development error detection is enabled for the module: the function Fee_EraseImmediateBlock shall check if the module state is MEMIF_UNINIT. If this is the
case, the function Fee_EraseImmediateBlock shall raise the development error
FEE_E_UNINIT.⌋
[SWS_Fee_00146] ⌈The function Fee_EraseImmediateBlock shall check if the
module state is MEMIF_BUSY. If this is the case, the function Fee_EraseImmediateBlock shall reject the erase request, raise the runtime error FEE_E_BUSY and
return with E_NOT_OK.⌋
[SWS_Fee_00068]
Upstream requirements: SRS_BSW_00323
⌈If development error detection is enabled for the module: the function Fee_EraseImmediateBlock shall check whether the addressed logical block is configured
as containing immediate data (FeeImmediateData == TRUE). If not, the function
Fee_EraseImmediateBlock shall raise the development error FEE_E_INVALID_
BLOCK_NO.⌋
[SWS_Fee_00141]
Upstream requirements: SRS_BSW_00323
⌈If development error detection is enabled for the module: the function Fee_EraseImmediateBlock shall check that the given block number is valid (i.e. it has been
configured). If this is not the case, the function Fee_EraseImmediateBlock shall
raise the development error FEE_E_INVALID_BLOCK_NO.⌋
[SWS_Fee_00166]
Upstream requirements: SRS_MemHwAb_14032
⌈If a erase request is rejected by the function Fee_EraseImmediateBlock,
i.e.
requirements [SWS_Fee_00068], [SWS_Fee_00127], [SWS_Fee_00141] or
[SWS_Fee_00146] apply, the function Fee_EraseImmediateBlock shall not change
the current module status or job result.⌋
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
Cited verbatim in the snippet (deterministic citation).
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | SWS_FlashEEPROMEmulation.pdf |
|---|---|
| Dokumentseite | Seite 35 |
| Ziel-Modul | fee (classic) |
| Ziel-Anforderung | SWS_Std_00005 |
| Semantische Rolle | constitutive |
| Automatisierungs-Konfidenz | 0.95 |