diff --git a/api/etherbone.h b/api/etherbone.h
index aa03c52087c4523c0ff6b90fa33b7021dad4f353..29869fa0d2f6178c007dcb3ca03c431ecc76135f 100644
--- a/api/etherbone.h
+++ b/api/etherbone.h
@@ -454,6 +454,8 @@ class Device {
     const Socket socket() const;
     Socket socket();
     
+    width_t widths() const;
+    
   protected:
     Device(eb_device_t device);
     eb_device_t device;
@@ -598,6 +600,10 @@ inline Socket Device::socket() {
   return Socket(eb_device_socket(device));
 }
 
+inline width_t Device::widths() const {
+  return eb_device_widths(device);
+}
+
 inline void Device::flush() {
   return eb_device_flush(device);
 }