9 NDM_EXCLUSIVE_STATE_NONE = 0,
10 NDM_EXCLUSIVE_STATE_INFRASTRUCTURE = 1,
11 NDM_EXCLUSIVE_STATE_LOCAL_COMMUNICATIONS = 2,
12 NDM_EXCLUSIVE_STATE_STREETPASS = 3,
13 NDM_EXCLUSIVE_STATE_STREETPASS_DATA = 4,
18 NDM_STATE_INITIAL = 0,
19 NDM_STATE_SUSPENDED = 1,
20 NDM_STATE_INFRASTRUCTURE_CONNECTING = 2,
21 NDM_STATE_INFRASTRUCTURE_CONNECTED = 3,
22 NDM_STATE_INFRASTRUCTURE_WORKING = 4,
23 NDM_STATE_INFRASTRUCTURE_SUSPENDING = 5,
24 NDM_STATE_INFRASTRUCTURE_FORCE_SUSPENDING = 6,
25 NDM_STATE_INFRASTRUCTURE_DISCONNECTING = 7,
26 NDM_STATE_INFRASTRUCTURE_FORCE_DISCONNECTING = 8,
27 NDM_STATE_CEC_WORKING = 9,
28 NDM_STATE_CEC_FORCE_SUSPENDING = 10,
29 NDM_STATE_CEC_SUSPENDING = 11,
37 NDM_DAEMON_FRIENDS = 3,
42 NDM_DAEMON_MASK_CEC =
BIT(NDM_DAEMON_CEC),
43 NDM_DAEMON_MASK_BOSS =
BIT(NDM_DAEMON_BOSS),
44 NDM_DAEMON_MASK_NIM =
BIT(NDM_DAEMON_NIM),
45 NDM_DAEMON_MASK_FRIENDS =
BIT(NDM_DAEMON_FRIENDS),
46 NDM_DAEMON_MASK_BACKGROUOND = NDM_DAEMON_MASK_CEC | NDM_DAEMON_MASK_BOSS | NDM_DAEMON_MASK_NIM,
47 NDM_DAEMON_MASK_ALL = NDM_DAEMON_MASK_CEC | NDM_DAEMON_MASK_BOSS | NDM_DAEMON_MASK_NIM | NDM_DAEMON_MASK_FRIENDS,
48 NDM_DAEMON_MASK_DEFAULT = NDM_DAEMON_MASK_CEC | NDM_DAEMON_MASK_FRIENDS,
53 NDM_DAEMON_STATUS_BUSY = 0,
54 NDM_DAEMON_STATUS_IDLE = 1,
55 NDM_DAEMON_STATUS_SUSPENDING = 2,
56 NDM_DAEMON_STATUS_SUSPENDED = 3,
Result NDMU_GetRetryInterval(u32 *interval)
Returns the retry interval.
ndmDaemonMask
Used to specify multiple daemons.
Definition: ndm.h:41
Result NDMU_LeaveExclusiveState(void)
Cancels an exclusive state for the network daemon.
Result NDMU_GetExclusiveState(ndmExclusiveState *state)
Returns the exclusive state for the network daemon.
Result NDMU_SuspendDaemons(ndmDaemonMask mask)
Suspends network daemon.
ndmState
Current states.
Definition: ndm.h:17
Result NDMU_GetDefaultDaemons(ndmDaemonMask *mask)
Gets the current default daemon bit mask.
Result NDMU_QueryStatus(ndmDaemon daemon, ndmDaemonStatus *status)
Returns a daemon state.
Result NDMU_LockState(void)
Locks the exclusive state.
Result NDMU_EnterExclusiveState(ndmExclusiveState state)
Sets the network daemon to an exclusive state.
Result NDMU_GetScanInterval(u32 *interval)
Returns the scan interval.
Result NDMU_UnlockState(void)
Unlocks the exclusive state.
Result NDMU_ResumeScheduler(void)
Resumes daemon scheduling.
Result NDMU_SuspendScheduler(u32 flag)
Suspends scheduling for all network daemons.
Result NDMU_GetCurrentState(ndmState *state)
Returns the current state for the network daemon.
Result NDMU_ResetDaemons(void)
Reverts network daemon to defaults.
Result NDMU_SetScanInterval(u32 interval)
Sets the scan interval.
void ndmuExit(void)
Exits ndmu.
Result ndmuInit(void)
Initializes ndmu.
ndmExclusiveState
Exclusive states.
Definition: ndm.h:8
Result NDMU_ClearMacFilter(void)
Clears half awake mac filter.
Result NDMU_ResumeDaemons(ndmDaemonMask mask)
Resumes network daemon.
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:47
s32 Result
Function result.
Definition: types.h:42
uint32_t u32
32-bit unsigned integer
Definition: types.h:23