Class Mcp7940m.Alarm
Represents an alarm on a Mcp7940xx series device.
public class Mcp7940m.Alarm
- Inheritance
-
Mcp7940m.Alarm
Constructors
Alarm(AlarmMatchMode, byte, byte, byte, byte, byte, DayOfWeek)
Initializes a new instance of the Mcp7940m.Alarm class.
public Alarm(AlarmMatchMode matchMode, byte month = 1, byte day = 1, byte hour = 0, byte minute = 0, byte second = 0, DayOfWeek dayOfWeek = DayOfWeek.Sunday)
Parameters
matchMode
AlarmMatchModeThe mode used to determine when the alarm should trigger.
month
byteThe month that the alarm will be triggerd on.
day
byteThe day-of-the-month that the alarm will be triggerd on.
hour
byteThe hour that the alarm will be triggerd on.
minute
byteThe minute that the alarm will be triggerd on.
second
byteThe second that the alarm will be triggerd on.
dayOfWeek
DayOfWeekThe day-of-the-week that the alarm will be triggerd on.
Remarks
Month, day, hour, minute, and second will be clamped to their respective valid ranges.
Properties
Day
Gets or sets the day-of-the-month that the alarm will be triggerd on.
public byte Day { get; set; }
Property Value
Remarks
The value is clamped to the range 1 through 31.
DayOfWeek
Gets or sets the day-of-the-week that the alarm will be triggerd on.
public DayOfWeek DayOfWeek { get; set; }
Property Value
Hour
Gets or sets the hour that the alarm will be triggerd on.
public byte Hour { get; set; }
Property Value
Remarks
The value is clamped to the range 0 through 23.
MatchMode
Gets or sets the mode used to determine when the alarm should trigger.
public AlarmMatchMode MatchMode { get; set; }
Property Value
Minute
Gets or sets the minute that the alarm will be triggerd on.
public byte Minute { get; set; }
Property Value
Remarks
The value is clamped to the range 0 through 59.
Month
Gets or sets the month that the alarm will be triggerd on.
public byte Month { get; set; }
Property Value
Remarks
The value is clamped to the range 1 through 12.
Second
Gets or sets the second that the alarm will be triggerd on.
public byte Second { get; set; }
Property Value
Remarks
The value is clamped to the range 0 through 59.
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Remarks
Available only in mscorlib build with support for System.Reflection.