BmnRoot
Loading...
Searching...
No Matches
BmnNdetAddressMixin.h
Go to the documentation of this file.
1#ifndef BMNNDETADDRESSMIXIN_H
2#define BMNNDETADDRESSMIXIN_H
3
12#include "BmnNdetAddress.h"
13
14template<typename T>
16{
17 public:
18 uint32_t GetSystemId() const { return BmnNdetAddress::GetSystemId(static_cast<const T*>(this)->GetAddress()); }
19 uint32_t GetArmId() const { return BmnNdetAddress::GetArmId(static_cast<const T*>(this)->GetAddress()); }
20 uint32_t GetRowId() const { return BmnNdetAddress::GetRowId(static_cast<const T*>(this)->GetAddress()); }
21 uint32_t GetColumnId() const { return BmnNdetAddress::GetColumnId(static_cast<const T*>(this)->GetAddress()); }
22 uint32_t GetLayerId() const { return BmnNdetAddress::GetLayerId(static_cast<const T*>(this)->GetAddress()); }
23};
24
25#endif /* BMNNDETADDRESSMIXIN_H */
interface to use the address methods
uint32_t GetColumnId() const
uint32_t GetSystemId() const
uint32_t GetRowId() const
uint32_t GetArmId() const
uint32_t GetLayerId() const
static uint32_t GetRowId(uint32_t address)
Return Row id from address.
static uint32_t GetSystemId(uint32_t address)
Return System identifier from address.
static uint32_t GetColumnId(uint32_t address)
Return Column id from address.
static uint32_t GetArmId(uint32_t address)
Return Arm id from address.
static uint32_t GetLayerId(uint32_t address)
Return Layer id from address.