16#ifndef BMNSCWALLADDRESS_H
17#define BMNSCWALLADDRESS_H 1
30 assert((uint32_t)
kSCWALL <= fgkSystemIdLength);
31 assert(CellId <= fgkCellIdLength);
32 return ( (((uint32_t)
kSCWALL) << fgkSystemIdShift)
33 | (CellId << fgkCellIdShift) );
43 return (address & (fgkSystemIdLength << fgkSystemIdShift)) >> fgkSystemIdShift;
53 return (address & (fgkCellIdLength << fgkCellIdShift)) >> fgkCellIdShift;
58 static const uint32_t fgkSystemIdLength = 31;
59 static const uint32_t fgkCellIdLength = 1023;
62 static const uint32_t fgkSystemIdShift = 0;
63 static const uint32_t fgkCellIdShift = 5;
BmnScWall interface class to the unique address.
static uint32_t GetCellId(uint32_t address)
Return Cell id from address.
static uint32_t GetAddress(uint32_t CellId)
Return address from system ID, Cell ID.
static uint32_t GetSystemId(uint32_t address)
Return System identifier from address.
Defines unique identifiers (enum) for all BM@N detector systems.