DEENESPTFRRUARHIKOZHNL
CLASSIC Modul: platform Rolle: constitutive Konfidenz: 95%

SNIP_CLASSIC_PLATFORM_SECTION_8_4_3_Bfx_GetBit

Quelle: SWS_BFXLibrary.pdf (Seite 19) • Ziel-Anforderung: SWS_Bfx_00020

Wortlaut

8.4.3 Bfx_GetBit [SWS_Bfx_00016] Definition of API function Bfx_GetBit_<TypeMn>u8_u8 ⌈ Service Name Bfx_GetBit_<TypeMn>u8_u8 Syntax boolean Bfx_GetBit_<TypeMn>u8_u8 ( <Type> Data, uint8 BitPn ) Service ID [hex] 0x0A to 0x0D (see SWS_Bfx_00020) Sync/Async Synchronous Reentrancy Reentrant Data Input data Parameters (in) BitPn Bit position Parameters (inout) None Parameters (out) None Return value boolean Bit Status Description This function shall return the logical status of the input data for the requested bit position. Available via Bfx.h ⌋ Expected functionality: 1 if ((Data & (0x01 << BitPn)) != 0) 2 return TRUE; 3 else 4 return FALSE; Example: 1 result = Bfx_GetBit_u8u8(10001010b, 1); The result will be TRUE. [SWS_Bfx_00020] List of Bfx_GetBit functions ⌈ Service ID[hex] Function prototype Valid values for parameter BitPn 0x0A boolean Bfx_GetBit_u8u8_ u8(uint8,uint8) 0,1,2,..,7 0x0B boolean Bfx_GetBit_u16u8_ u8(uint16,uint8) 0,1,2,..,15 0x0C boolean Bfx_GetBit_u32u8_ u8(uint32,uint8) 0,1,2,..,31 0x0D boolean Bfx_GetBit_u64u8_ u8(uint64,uint8) 0,1,2,..,63 ⌋

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_BFXLibrary.pdf
Dokumentseite Seite 19
Ziel-Modul platform (classic)
Ziel-Anforderung SWS_Bfx_00020
Semantische Rolle constitutive
Automatisierungs-Konfidenz 0.95