Go to the source code of this file.
◆ eth_adin2111_lock()
Locks device access. 
- Parameters
 - 
  
    | [in] | dev | ADIN2111 device.  | 
     | timeout | Waiting period to lock the device, or one of the special values K_NO_WAIT and K_FOREVER. | 
  
   
- Return values
 - 
  
    | 0 | Device locked.  | 
    | -EBUSY | Returned without waiting.  | 
    | -EAGAIN | Waiting period timed out.  | 
  
   
 
 
◆ eth_adin2111_reg_read()
Reads host MAC interface register over SPI. 
- Note
 - The caller is responsible for device lock. Shall not be called from ISR.
 
- Parameters
 - 
  
    | [in] | dev | ADIN2111 device.  | 
     | reg | Register address.  | 
    | [out] | val | Read value output. | 
  
   
- Return values
 - 
  
    | 0 | Successful write.  | 
    | <0 | Error, a negative errno code.  | 
  
   
 
 
◆ eth_adin2111_reg_write()
Writes host MAC interface register over SPI. 
- Note
 - The caller is responsible for device lock. Shall not be called from ISR.
 
- Parameters
 - 
  
    | [in] | dev | ADIN2111 device.  | 
     | reg | Register address.  | 
     | val | Value to write. | 
  
   
- Return values
 - 
  
    | 0 | Successful write.  | 
    | <0 | Error, a negative errno code.  | 
  
   
 
 
◆ eth_adin2111_unlock()
      
        
          | int eth_adin2111_unlock  | 
          ( | 
          const struct device *  | 
          dev | ) | 
           | 
        
      
 
Unlocks device access. 
- Parameters
 - 
  
  
 
- Return values
 - 
  
    | 0 | Device unlocked.  | 
    | -EPERM | The current thread does not own the device lock.  | 
    | -EINVAL | The device is not locked.  |