classdef helperBLELLConnectionEventStatus < uint8
%helperBLELLConnectionEventStatus Enumeration to indicate the status of BLE
%Link Layer connection events
%   STATUS = helperBLELLConnectionEventStatus.<ENUMVALUE> creates an
%   enumeration with the value specified by the ENUMVALUE. Valid values for
%   ENUMVALUE are indicated below.
%
%   helperBLELLConnectionEventStatus properties (enumeration values):
%
%   Idle (0)        - Device is in idle state
%   Transmit (1)    - Device is in transmitting state
%   Listen (2)      - Device is listening for Link Layer data packets
%
%   % Example 1:
%   %   Use an enumeration value 'Transmit'.
%
%     status = helperBLELLConnectionEventStatus.Transmit;
%
%     % Enum value can be compared using either number or string.
%     if (status == 0) && strcmp(status, 'Transmit') && ...
%           (status == "Transmit") && ...
%           (status == helperBLELLConnectionEventStatus.Transmit)
%       fprintf('Comparison can be done using a number, string or an enum.\n');
%     end
%
%   See also helperBLELLConnectionEvent.

%   Copyright 2018 The MathWorks, Inc.
    
enumeration
    %Idle Device is in idle state
    % Idle is mapped to the value 0.
    Idle (0)
    
    %Transmit Device is in transmitting state
    % Transmit is mapped to the value 1.
    Transmit (1)
    
    %Listen Device is listening for Link Layer data packets
    % Listen is mapped to the value 2.
    Listen (2)
end
end

