VibrationThread class
Base classes
- class sead::Thread
Public types
- enum class HeapNullOption { AlwaysUseSpecifiedHeap = 0, UseSpecifiedOrContainHeap = 1, DoNotAppendDisposerIfNoHeapSpecified = 2, UseSpecifiedOrCurrentHeap = 3 }
- enum class NodeClassType { Reflexible = 0, Node = 1, Other = 2 }
- enum class AllocFlg { Name = 1u << 0u, Meta = 1u << 1u }
Public static variables
- static const s32 cDefaultPriority
Public static functions
- static void yield()
- static void sleep(TickSpan howLong)
- static auto getListNodeOffset() -> u32
Constructors, destructors, conversion operators
- VibrationThread(Heap* heap)
- ~VibrationThread() override
Public functions
- void calc_(s64) override
-
void requestVibration(const nn::
hid:: VibrationDeviceHandle& handle, const nn:: hid:: VibrationValue& value) - void destroy() virtual
-
auto sendMessage(MessageQueue::
Element msg, MessageQueue:: BlockType block_type) -> bool virtual -
auto recvMessage(MessageQueue::
BlockType block_type) -> MessageQueue:: Element virtual - auto getMessageQueue() const -> const MessageQueue& virtual
- auto start() -> bool virtual
- void quit(bool is_jam) virtual
- void waitDone() virtual
- void quitAndDestroySingleThread(bool is_jam) virtual
- void quitAndWaitDoneSingleThread(bool is_jam) virtual
- void setPriority(s32 prio) virtual
- auto getPriority() const -> s32 virtual
-
auto getBlockType() const -> MessageQueue::
BlockType virtual - auto getStackSize() const -> s32 virtual
- auto calcStackUsedSizePeak() const -> s32 virtual
- auto getId() const -> u32
- auto getState() const -> State
- auto isDone() const -> bool
- auto isActive() const -> bool
- auto getAffinity() const -> const CoreIdMask&
- void setAffinity(const CoreIdMask& affinity)
- void checkStackOverFlow(const char* source_file, s32 source_line) const
- void checkStackEndCorruption(const char* source_file, s32 source_line) const
- void checkStackPointerOverFlow(const char* source_file, s32 source_line) const
- void setStackOverflowExceptionEnable(bool)
- auto getThreadListNode() -> ThreadListNode*
- auto isDefaultPriority() const -> bool
- auto getCurrentHeap() const -> Heap*
- auto setCurrentHeap(Heap* heap) -> Heap*
- auto getFindContainHeapCache() -> FindContainHeapCache*
- auto getName() const -> const SafeString&
- void setName(const SafeString& name)
- auto getNodeClassType() const -> NodeClassType virtual
Protected functions
- void run_() virtual
-
void calc_(MessageQueue::
Element msg) pure virtual - auto getStackCheckStartAddress_() const -> uintptr_t virtual
- void initStackCheck_()
- void initStackCheckWithCurrentStackPointer_()
- auto getDisposerHeap_() const -> Heap*
Protected variables
Enum documentation
enum class sead:: NinJoyNpadDevice:: VibrationThread:: HeapNullOption
#include <heap/seadDisposer.h>
enum class sead:: NinJoyNpadDevice:: VibrationThread:: NodeClassType
#include <hostio/seadHostIOReflexible.h>
| Enumerators | |
|---|---|
| Reflexible | |
| Node | |
| Other |
Other classes. |
enum class sead:: NinJoyNpadDevice:: VibrationThread:: AllocFlg
#include <hostio/seadHostIOReflexible.h>
Function documentation
static void sead:: NinJoyNpadDevice:: VibrationThread:: yield()
#include <thread/seadThread.h>
static void sead:: NinJoyNpadDevice:: VibrationThread:: sleep(TickSpan howLong)
#include <thread/seadThread.h>
static u32 sead:: NinJoyNpadDevice:: VibrationThread:: getListNodeOffset()
#include <heap/seadDisposer.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: destroy() virtual
#include <thread/seadThread.h>
bool sead:: NinJoyNpadDevice:: VibrationThread:: sendMessage(MessageQueue:: Element msg,
MessageQueue:: BlockType block_type) virtual
#include <thread/seadThread.h>
MessageQueue:: Element sead:: NinJoyNpadDevice:: VibrationThread:: recvMessage(MessageQueue:: BlockType block_type) virtual
#include <thread/seadThread.h>
const MessageQueue& sead:: NinJoyNpadDevice:: VibrationThread:: getMessageQueue() const virtual
#include <thread/seadThread.h>
bool sead:: NinJoyNpadDevice:: VibrationThread:: start() virtual
#include <thread/seadThread.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: quit(bool is_jam) virtual
#include <thread/seadThread.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: waitDone() virtual
#include <thread/seadThread.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: quitAndDestroySingleThread(bool is_jam) virtual
#include <thread/seadThread.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: quitAndWaitDoneSingleThread(bool is_jam) virtual
#include <thread/seadThread.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: setPriority(s32 prio) virtual
#include <thread/seadThread.h>
s32 sead:: NinJoyNpadDevice:: VibrationThread:: getPriority() const virtual
#include <thread/seadThread.h>
MessageQueue:: BlockType sead:: NinJoyNpadDevice:: VibrationThread:: getBlockType() const virtual
#include <thread/seadThread.h>
s32 sead:: NinJoyNpadDevice:: VibrationThread:: getStackSize() const virtual
#include <thread/seadThread.h>
s32 sead:: NinJoyNpadDevice:: VibrationThread:: calcStackUsedSizePeak() const virtual
#include <thread/seadThread.h>
u32 sead:: NinJoyNpadDevice:: VibrationThread:: getId() const
#include <thread/seadThread.h>
State sead:: NinJoyNpadDevice:: VibrationThread:: getState() const
#include <thread/seadThread.h>
bool sead:: NinJoyNpadDevice:: VibrationThread:: isDone() const
#include <thread/seadThread.h>
bool sead:: NinJoyNpadDevice:: VibrationThread:: isActive() const
#include <thread/seadThread.h>
const CoreIdMask& sead:: NinJoyNpadDevice:: VibrationThread:: getAffinity() const
#include <thread/seadThread.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: setAffinity(const CoreIdMask& affinity)
#include <thread/seadThread.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: checkStackOverFlow(const char* source_file,
s32 source_line) const
#include <thread/seadThread.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: checkStackEndCorruption(const char* source_file,
s32 source_line) const
#include <thread/seadThread.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: checkStackPointerOverFlow(const char* source_file,
s32 source_line) const
#include <thread/seadThread.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: setStackOverflowExceptionEnable(bool)
#include <thread/seadThread.h>
ThreadListNode* sead:: NinJoyNpadDevice:: VibrationThread:: getThreadListNode()
#include <thread/seadThread.h>
bool sead:: NinJoyNpadDevice:: VibrationThread:: isDefaultPriority() const
#include <thread/seadThread.h>
Heap* sead:: NinJoyNpadDevice:: VibrationThread:: getCurrentHeap() const
#include <thread/seadThread.h>
Heap* sead:: NinJoyNpadDevice:: VibrationThread:: setCurrentHeap(Heap* heap)
#include <thread/seadThread.h>
FindContainHeapCache* sead:: NinJoyNpadDevice:: VibrationThread:: getFindContainHeapCache()
#include <thread/seadThread.h>
const SafeString& sead:: NinJoyNpadDevice:: VibrationThread:: getName() const
#include <prim/seadNamable.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: setName(const SafeString& name)
#include <prim/seadNamable.h>
NodeClassType sead:: NinJoyNpadDevice:: VibrationThread:: getNodeClassType() const virtual
#include <hostio/seadHostIOReflexible.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: run_() virtual protected
#include <thread/seadThread.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: calc_(MessageQueue:: Element msg) pure virtual protected
#include <thread/seadThread.h>
uintptr_t sead:: NinJoyNpadDevice:: VibrationThread:: getStackCheckStartAddress_() const virtual protected
#include <thread/seadThread.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: initStackCheck_() protected
#include <thread/seadThread.h>
void sead:: NinJoyNpadDevice:: VibrationThread:: initStackCheckWithCurrentStackPointer_() protected
#include <thread/seadThread.h>
Heap* sead:: NinJoyNpadDevice:: VibrationThread:: getDisposerHeap_() const protected
#include <heap/seadDisposer.h>
Variable documentation
static const s32 sead:: NinJoyNpadDevice:: VibrationThread:: cDefaultPriority
#include <thread/seadThread.h>
MessageQueue sead:: NinJoyNpadDevice:: VibrationThread:: mMessageQueue protected
#include <thread/seadThread.h>
s32 sead:: NinJoyNpadDevice:: VibrationThread:: mStackSize protected
#include <thread/seadThread.h>
ThreadListNode sead:: NinJoyNpadDevice:: VibrationThread:: mListNode protected
#include <thread/seadThread.h>
Heap* sead:: NinJoyNpadDevice:: VibrationThread:: mCurrentHeap protected
#include <thread/seadThread.h>
FindContainHeapCache sead:: NinJoyNpadDevice:: VibrationThread:: mFindContainHeapCache protected
#include <thread/seadThread.h>
MessageQueue:: BlockType sead:: NinJoyNpadDevice:: VibrationThread:: mBlockType protected
#include <thread/seadThread.h>
MessageQueue:: Element sead:: NinJoyNpadDevice:: VibrationThread:: mQuitMsg protected
#include <thread/seadThread.h>
u32 sead:: NinJoyNpadDevice:: VibrationThread:: mId protected
#include <thread/seadThread.h>
State sead:: NinJoyNpadDevice:: VibrationThread:: mState protected
#include <thread/seadThread.h>
CoreIdMask sead:: NinJoyNpadDevice:: VibrationThread:: mAffinity protected
#include <thread/seadThread.h>
void* sead:: NinJoyNpadDevice:: VibrationThread:: mStackTop protected
#include <thread/seadThread.h>
void* sead:: NinJoyNpadDevice:: VibrationThread:: mStackTopForCheck protected
#include <thread/seadThread.h>
s32 sead:: NinJoyNpadDevice:: VibrationThread:: mPriority protected
#include <thread/seadThread.h>