wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
smd.h File Reference
#include <wut.h>
#include <coreinit/mutex.h>
Include dependency graph for smd.h:

Go to the source code of this file.

Data Structures

struct  SmdVectorSpec
 
struct  SmdVector
 
struct  SmdElement
 
struct  SmdReceiveData
 
struct  SmdInterface
 
struct  SmdCtrlTable
 
struct  SmdPpcCtrlTableVectors
 
struct  SmdPpc
 
struct  SmdSimpleBufPool
 
union  SmdElement.__unnamed13__
 
union  SmdReceiveData.__unnamed15__
 

Typedefs

typedef struct SmdVectorSpec SmdVectorSpec
 
typedef struct SmdVector SmdVector
 
typedef struct SmdElement SmdElement
 
typedef struct SmdReceiveData SmdReceiveData
 
typedef struct SmdInterface SmdInterface
 
typedef struct SmdCtrlTable SmdCtrlTable
 
typedef struct SmdPpcCtrlTableVectors SmdPpcCtrlTableVectors
 
typedef struct SmdPpc SmdPpc
 
typedef struct SmdSimpleBufPool SmdSimpleBufPool
 
typedef enum SmdLockType SmdLockType
 
typedef enum SmdPpcState SmdPpcState
 
typedef enum SmdInterfaceState SmdInterfaceState
 
typedef enum SmdElementType SmdElementType
 

Enumerations

enum  SmdLockType {
  SMD_LOCK_TYPE_MUTEX = 0 ,
  SMD_LOCK_TYPE_DISABLE_INTERRUPTS = 1 ,
  SMD_LOCK_TYPE_NONE = 2
}
 
enum  SmdPpcState {
  SMD_PPC_STATE_INVALID = 0 ,
  SMD_PPC_STATE_INITIALIZED = 1 ,
  SMD_PPC_STATE_CLOSED = 2 ,
  SMD_PPC_STATE_OPENED = 3
}
 
enum  SmdInterfaceState {
  SMD_INTERFACE_STATE_OPENED = 0x2222 ,
  SMD_INTERFACE_STATE_CLOSED = 0x3333
}
 
enum  SmdElementType {
  SMD_ELEMENT_TYPE_MESSAGE = 0 ,
  SMD_ELEMENT_TYPE_VECTOR_SPEC = 1 ,
  SMD_ELEMENT_TYPE_VECTOR = 2
}
 

Functions

SmdPpcsmdPpcInit (void *buf, uint32_t bufSize, uint32_t messageCount, const char *name, SmdLockType lockType)
 
int32_t smdPpcGetCtrlTableVectors (SmdPpc *smd, SmdPpcCtrlTableVectors *outVectors)
 
int32_t smdPpcOpen (SmdPpc *smd)
 
int32_t smdPpcClose (SmdPpc *smd)
 
int32_t smdPpcGetInterfaceState (SmdPpc *smd, SmdInterfaceState *outPpcState, SmdInterfaceState *outIopState)
 
int32_t smdPpcReceive (SmdPpc *smd, SmdReceiveData *data)
 
int32_t smdPpcSendMessage (SmdPpc *smd, void *message, uint32_t messageSize)
 
int32_t smdPpcSendVectorSpec (SmdPpc *smd, uint32_t command, SmdVectorSpec *specs, int32_t specsCount)
 
int32_t smdPpcSendVector (SmdPpc *smd, SmdVector *vector)
 
SmdSimpleBufPoolsmdSimpleBufPoolCreate (void *poolData, uint32_t poolDataSize, uint32_t allocSize, uint32_t allocCount, SmdLockType lockType)
 
int32_t smdSimpleBufAlloc (SmdSimpleBufPool *pool, void **outAlloc)
 
int32_t smdSimpleBufFree (SmdSimpleBufPool *pool, void *alloc)
 
int32_t smdSimpleBufGetStatistics (SmdSimpleBufPool *pool, uint32_t *allocCount, uint32_t *freeErrorCount)