aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/types.cpp')
-rw-r--r--host/lib/types.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/types.cpp b/host/lib/types.cpp
index 33eb550a1..87a2ad4ab 100644
--- a/host/lib/types.cpp
+++ b/host/lib/types.cpp
@@ -220,6 +220,10 @@ std::string mac_addr_t::to_string(void) const{
/***********************************************************************
* otw type
**********************************************************************/
+size_t otw_type_t::get_sample_size(void) const{
+ return (this->width * 2) / 8;
+}
+
otw_type_t::otw_type_t(void){
width = 0;
shift = 0;