MOS Source Code
Loading...
Searching...
No Matches
dt_property Class Reference

#include <libfdt++.hpp>

+ Collaboration diagram for dt_property:

Public Member Functions

 dt_property (const dt_node &node, const char *name)
 
 dt_property (const dt_node &node, int poffset)
 
u32 get_u32 () const
 
u64 get_u64 () const
 
const char * get_string () const
 
int len () const
 
voidget_data () const
 
const char * get_name () const
 
 operator bool () const
 

Private Attributes

const dt_nodem_node
 
const char * m_name
 
const voidm_propdata
 
int m_len
 
friend dt_reg
 

Detailed Description

Definition at line 16 of file libfdt++.hpp.

Constructor & Destructor Documentation

◆ dt_property() [1/2]

dt_property ( const dt_node & node,
const char * name )
explicit

Definition at line 97 of file libfdt++.cpp.

+ Here is the call graph for this function:

◆ dt_property() [2/2]

dt_property ( const dt_node & node,
int poffset )
explicit

Definition at line 102 of file libfdt++.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ get_u32()

u32 get_u32 ( ) const

Definition at line 107 of file libfdt++.cpp.

Referenced by print_property_value().

+ Here is the call graph for this function:

◆ get_u64()

u64 get_u64 ( ) const

Definition at line 112 of file libfdt++.cpp.

Referenced by print_property_value().

+ Here is the call graph for this function:

◆ get_string()

const char * get_string ( ) const

Definition at line 117 of file libfdt++.cpp.

Referenced by print_property_value().

◆ len()

int len ( ) const
inline

Definition at line 28 of file libfdt++.hpp.

Referenced by print_property_value(), and dt_reg::verify_validity().

◆ get_data()

void * get_data ( ) const
inline

Definition at line 29 of file libfdt++.hpp.

◆ get_name()

const char * get_name ( ) const
inline

Definition at line 30 of file libfdt++.hpp.

Referenced by print_property_value().

◆ operator bool()

operator bool ( ) const
inline

Definition at line 31 of file libfdt++.hpp.

Member Data Documentation

◆ m_node

const dt_node& m_node
private

Definition at line 35 of file libfdt++.hpp.

◆ m_name

const char* m_name
private

Definition at line 36 of file libfdt++.hpp.

Referenced by dt_property(), and get_name().

◆ m_propdata

const void* m_propdata
private

◆ m_len

int m_len
private

Definition at line 38 of file libfdt++.hpp.

Referenced by dt_property(), dt_property(), dt_reg::end(), and len().

◆ dt_reg

friend dt_reg
private

Definition at line 40 of file libfdt++.hpp.


The documentation for this class was generated from the following files: