Device driver interface for the AT24MAC I2C chip.  
More...
Device driver interface for the AT24MAC I2C chip. 
 | 
| 
typedef uint_fast8_t  | at24mac_t | 
|   | Device handle type for AT24Mac devices. 
  | 
|   | 
◆ at24mac_type_t
Type of the AT24Mac device. 
| Enumerator | 
|---|
| AT24MAC4XX  | provides EUI-48  
 | 
| AT24MAC6XX  | provides EUI-64  
 | 
Definition at line 41 of file at24mac.h.
 
 
◆ at24mac_get_eui48()
Get the unique EUI48 address from a AT24MAC4xx chip. 
- Parameters
 - 
  
    | [in] | dev | Index of the AT24Mac chip in the at24mac_params array.  | 
    | [out] | addr | memory location to copy the address into. | 
  
   
- Returns
 - 0 on success, error otherwise. 
 
 
 
◆ at24mac_get_eui64()
Get the unique EUI64 address from a AT24MAC6xx chip. 
- Parameters
 - 
  
    | [in] | dev | Index of the AT24Mac chip in the at24mac_params array.  | 
    | [out] | addr | memory location to copy the address into. | 
  
   
- Returns
 - 0 on success, error otherwise. 
 
 
 
◆ at24mac_get_id128()
      
        
          | int at24mac_get_id128  | 
          ( | 
          at24mac_t  | 
          dev,  | 
        
        
           | 
           | 
          void *  | 
          dst  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Get the unique ID from a AT24MACxxx chip. 
- Parameters
 - 
  
    | [in] | dev | Index of the AT24MAC chip in the at24mac_params array.  | 
    | [out] | dst | memory location to copy the ID into. Must be able to hold at least AT24MAC_ID_LEN bytes. | 
  
   
- Returns
 - 0 on success, error otherwise. 
 
 
 
◆ at24mac_get_type()
Get the type of a AT24MACxxx chip. 
- Parameters
 - 
  
    | [in] | dev | Index of the AT24MAC chip in the at24mac_params array. | 
  
   
- Returns
 - The type of the device (AT24MAC4XX or AT24MAC6XX)