1-Wire® library for mbed. Complete 1-Wire library that supports our silicon masters along with a bit-bang master on the MAX32600MBED platform with one common interface for mbed. Slave support has also been included and more slaves will be added as time permits.

Dependents:   MAXREFDES131_Qt_Demo MAX32630FTHR_iButton_uSD_Logger MAX32630FTHR_DS18B20_uSD_Logger MAXREFDES130_131_Demo ... more

Embed: (wiki syntax)

« Back to documentation index

DS28E15_22_25::BlockProtection Class Reference

DS28E15_22_25::BlockProtection Class Reference

Represents the status of a memory protection block. More...

#include <DS28E15_22_25.h>

Public Member Functions

uint8_t statusByte () const
 Get the byte representation used by the device.
void setStatusByte (uint8_t status)
 Set the byte representation used by the device.
unsigned int blockNum () const
 Get the Block Number which is indexed from zero.
void setBlockNum (unsigned int blockNum)
 Set the Block Number which is indexed from zero.
bool readProtection () const
 Get the Read Protection status.
void setReadProtection (bool readProtection)
 Set the Read Protection status.
bool writeProtection () const
 Get the Write Protection status.
void setWriteProtection (bool writeProtection)
 Set the Write Protection status.
bool eepromEmulation () const
 Get the EEPROM Emulation Mode status.
void setEepromEmulation (bool eepromEmulation)
 Set the EEPROM Emulation Mode status.
bool authProtection () const
 Get the Authentication Protection status.
void setAuthProtection (bool authProtection)
 Set the Authentication Protection status.
bool noProtection () const
 Check if no protection options are enabled.

Detailed Description

Represents the status of a memory protection block.

Definition at line 84 of file DS28E15_22_25.h.


Member Function Documentation

bool authProtection (  ) const

Get the Authentication Protection status.

Returns:
True if Authentication Protection is enabled.

Definition at line 124 of file DS28E15_22_25.h.

unsigned int blockNum (  ) const

Get the Block Number which is indexed from zero.

Definition at line 100 of file DS28E15_22_25.h.

bool eepromEmulation (  ) const

Get the EEPROM Emulation Mode status.

Returns:
True if EEPROM Emulation Mode is enabled.

Definition at line 118 of file DS28E15_22_25.h.

bool noProtection (  ) const

Check if no protection options are enabled.

Returns:
True if no protection options are enabled.

Definition at line 96 of file DS28E15_22_25.cpp.

bool readProtection (  ) const

Get the Read Protection status.

Returns:
True if Read Protection is enabled.

Definition at line 106 of file DS28E15_22_25.h.

void setAuthProtection ( bool  authProtection )

Set the Authentication Protection status.

Definition at line 137 of file DS28E15_22_25.cpp.

void setBlockNum ( unsigned int  blockNum )

Set the Block Number which is indexed from zero.

Definition at line 90 of file DS28E15_22_25.cpp.

void setEepromEmulation ( bool  eepromEmulation )

Set the EEPROM Emulation Mode status.

Definition at line 125 of file DS28E15_22_25.cpp.

void setReadProtection ( bool  readProtection )

Set the Read Protection status.

Definition at line 101 of file DS28E15_22_25.cpp.

void setStatusByte ( uint8_t  status )

Set the byte representation used by the device.

Definition at line 97 of file DS28E15_22_25.h.

void setWriteProtection ( bool  writeProtection )

Set the Write Protection status.

Definition at line 113 of file DS28E15_22_25.cpp.

uint8_t statusByte (  ) const

Get the byte representation used by the device.

Definition at line 95 of file DS28E15_22_25.h.

bool writeProtection (  ) const

Get the Write Protection status.

Returns:
True if Write Protection is enabled.

Definition at line 112 of file DS28E15_22_25.h.