hid: Updated Palma docs.

This commit is contained in:
yellows8 2020-12-05 00:46:49 -05:00
parent c3b63e8723
commit de5e158545
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43

View File

@ -2097,7 +2097,7 @@ Result hidGetPalmaConnectionHandle(HidNpadIdType id, HidPalmaConnectionHandle *o
Result hidInitializePalma(HidPalmaConnectionHandle handle); Result hidInitializePalma(HidPalmaConnectionHandle handle);
/** /**
* @brief AcquirePalmaOperationCompleteEvent * @brief Gets an Event which is signaled when data is available with \ref hidGetPalmaOperationInfo.
* @note The Event must be closed by the user once finished with it. * @note The Event must be closed by the user once finished with it.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
@ -2107,7 +2107,8 @@ Result hidInitializePalma(HidPalmaConnectionHandle handle);
Result hidAcquirePalmaOperationCompleteEvent(HidPalmaConnectionHandle handle, Event* out_event, bool autoclear); Result hidAcquirePalmaOperationCompleteEvent(HidPalmaConnectionHandle handle, Event* out_event, bool autoclear);
/** /**
* @brief GetPalmaOperationInfo * @brief Gets \ref HidPalmaOperationInfo for a completed operation.
* @note This must be used at some point following using any of the other Palma cmds which trigger an Operation, once the Event from \ref hidAcquirePalmaOperationCompleteEvent is signaled. Up to 4 Operations can be queued at once, the other cmds will throw an error once there's too many operations.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
* @param[out] out \ref HidPalmaOperationInfo * @param[out] out \ref HidPalmaOperationInfo
@ -2116,6 +2117,7 @@ Result hidGetPalmaOperationInfo(HidPalmaConnectionHandle handle, HidPalmaOperati
/** /**
* @brief PlayPalmaActivity * @brief PlayPalmaActivity
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
* @param[in] val Input value. * @param[in] val Input value.
@ -2124,6 +2126,7 @@ Result hidPlayPalmaActivity(HidPalmaConnectionHandle handle, u16 val);
/** /**
* @brief SetPalmaFrModeType * @brief SetPalmaFrModeType
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
* @param[in] type \ref HidPalmaFrModeType * @param[in] type \ref HidPalmaFrModeType
@ -2132,6 +2135,8 @@ Result hidSetPalmaFrModeType(HidPalmaConnectionHandle handle, HidPalmaFrModeType
/** /**
* @brief ReadPalmaStep * @brief ReadPalmaStep
* @note See \ref hidGetPalmaOperationInfo.
* @note \ref hidEnablePalmaStep should be used before this.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
*/ */
@ -2139,6 +2144,7 @@ Result hidReadPalmaStep(HidPalmaConnectionHandle handle);
/** /**
* @brief EnablePalmaStep * @brief EnablePalmaStep
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
* @param[in] flag Flag * @param[in] flag Flag
@ -2147,6 +2153,7 @@ Result hidEnablePalmaStep(HidPalmaConnectionHandle handle, bool flag);
/** /**
* @brief ResetPalmaStep * @brief ResetPalmaStep
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
*/ */
@ -2154,6 +2161,7 @@ Result hidResetPalmaStep(HidPalmaConnectionHandle handle);
/** /**
* @brief ReadPalmaApplicationSection * @brief ReadPalmaApplicationSection
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
* @param[in] inval0 First input value. This must be within the size of \ref HidPalmaApplicationSectionAccessBuffer. * @param[in] inval0 First input value. This must be within the size of \ref HidPalmaApplicationSectionAccessBuffer.
@ -2163,6 +2171,7 @@ Result hidReadPalmaApplicationSection(HidPalmaConnectionHandle handle, s32 inval
/** /**
* @brief WritePalmaApplicationSection * @brief WritePalmaApplicationSection
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
* @param[in] inval0 First input value. * @param[in] inval0 First input value.
@ -2173,6 +2182,7 @@ Result hidWritePalmaApplicationSection(HidPalmaConnectionHandle handle, s32 inva
/** /**
* @brief ReadPalmaUniqueCode * @brief ReadPalmaUniqueCode
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
*/ */
@ -2180,6 +2190,7 @@ Result hidReadPalmaUniqueCode(HidPalmaConnectionHandle handle);
/** /**
* @brief SetPalmaUniqueCodeInvalid * @brief SetPalmaUniqueCodeInvalid
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
*/ */
@ -2187,6 +2198,7 @@ Result hidSetPalmaUniqueCodeInvalid(HidPalmaConnectionHandle handle);
/** /**
* @brief WritePalmaActivityEntry * @brief WritePalmaActivityEntry
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
* @param[in] unk Unknown * @param[in] unk Unknown
@ -2196,6 +2208,7 @@ Result hidWritePalmaActivityEntry(HidPalmaConnectionHandle handle, u16 unk, cons
/** /**
* @brief WritePalmaRgbLedPatternEntry * @brief WritePalmaRgbLedPatternEntry
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
* @param[in] unk Unknown * @param[in] unk Unknown
@ -2206,6 +2219,7 @@ Result hidWritePalmaRgbLedPatternEntry(HidPalmaConnectionHandle handle, u16 unk,
/** /**
* @brief WritePalmaWaveEntry * @brief WritePalmaWaveEntry
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
* @param[in] wave_set \ref HidPalmaWaveSet * @param[in] wave_set \ref HidPalmaWaveSet
@ -2218,6 +2232,7 @@ Result hidWritePalmaWaveEntry(HidPalmaConnectionHandle handle, HidPalmaWaveSet w
/** /**
* @brief SetPalmaDataBaseIdentificationVersion * @brief SetPalmaDataBaseIdentificationVersion
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
* @param[in] version Version * @param[in] version Version
@ -2226,6 +2241,7 @@ Result hidSetPalmaDataBaseIdentificationVersion(HidPalmaConnectionHandle handle,
/** /**
* @brief GetPalmaDataBaseIdentificationVersion * @brief GetPalmaDataBaseIdentificationVersion
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
*/ */
@ -2233,6 +2249,7 @@ Result hidGetPalmaDataBaseIdentificationVersion(HidPalmaConnectionHandle handle)
/** /**
* @brief SuspendPalmaFeature * @brief SuspendPalmaFeature
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.0.0+]. * @note Only available on [5.0.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
* @param[in] features Bitfield of \ref HidPalmaFeature. * @param[in] features Bitfield of \ref HidPalmaFeature.
@ -2241,6 +2258,7 @@ Result hidSuspendPalmaFeature(HidPalmaConnectionHandle handle, u32 features);
/** /**
* @brief ReadPalmaPlayLog * @brief ReadPalmaPlayLog
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.1.0+]. * @note Only available on [5.1.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
* @param[in] unk Unknown * @param[in] unk Unknown
@ -2249,6 +2267,7 @@ Result hidReadPalmaPlayLog(HidPalmaConnectionHandle handle, u16 unk);
/** /**
* @brief ResetPalmaPlayLog * @brief ResetPalmaPlayLog
* @note See \ref hidGetPalmaOperationInfo.
* @note Only available on [5.1.0+]. * @note Only available on [5.1.0+].
* @param[in] handle \ref HidPalmaConnectionHandle * @param[in] handle \ref HidPalmaConnectionHandle
* @param[in] unk Unknown * @param[in] unk Unknown
@ -2298,8 +2317,6 @@ Result hidEnablePalmaBoostMode(bool flag);
*/ */
Result hidGetPalmaBluetoothAddress(HidPalmaConnectionHandle handle, BtdrvAddress *out); Result hidGetPalmaBluetoothAddress(HidPalmaConnectionHandle handle, BtdrvAddress *out);
///@}
/** /**
* @brief SetDisallowedPalmaConnection * @brief SetDisallowedPalmaConnection
* @note Only available on [8.0.0+]. * @note Only available on [8.0.0+].
@ -2308,6 +2325,8 @@ Result hidGetPalmaBluetoothAddress(HidPalmaConnectionHandle handle, BtdrvAddress
*/ */
Result hidSetDisallowedPalmaConnection(const BtdrvAddress *addrs, s32 count); Result hidSetDisallowedPalmaConnection(const BtdrvAddress *addrs, s32 count);
///@}
/** /**
* @brief SetNpadCommunicationMode * @brief SetNpadCommunicationMode
* @param[in] mode \ref HidNpadCommunicationMode * @param[in] mode \ref HidNpadCommunicationMode