diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2018-06-24 16:41:58 +1000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2018-06-24 16:41:58 +1000 |
commit | bc57f4ea5afd29f2e0f0175d14cf1540b4408de8 (patch) | |
tree | 1d393db9904884112e42b80017a04a777449b80f /Demos/Device/ClassDriver/CCID/CCID.c | |
parent | 8e590e6cb3013ab3e317e219031b326df16fb6dc (diff) | |
download | lufa-bc57f4ea5afd29f2e0f0175d14cf1540b4408de8.tar.gz lufa-bc57f4ea5afd29f2e0f0175d14cf1540b4408de8.tar.bz2 lufa-bc57f4ea5afd29f2e0f0175d14cf1540b4408de8.zip |
Reformatting and add const qualifiers.
Diffstat (limited to 'Demos/Device/ClassDriver/CCID/CCID.c')
-rw-r--r-- | Demos/Device/ClassDriver/CCID/CCID.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Demos/Device/ClassDriver/CCID/CCID.c b/Demos/Device/ClassDriver/CCID/CCID.c index 916306505..9059ad40d 100644 --- a/Demos/Device/ClassDriver/CCID/CCID.c +++ b/Demos/Device/ClassDriver/CCID/CCID.c @@ -157,10 +157,11 @@ void EVENT_USB_Device_ControlRequest(void) * whenever an application at the host wants to send a power off signal to a slot. * THe slot must reply back with a recognizable ATR (answer to reset) */ -uint8_t CALLBACK_CCID_IccPowerOn(uint8_t slot, - uint8_t* atr, - uint8_t* attrSize, - uint8_t* error) +uint8_t CALLBACK_CCID_IccPowerOn(USB_ClassInfo_CCID_Device_t* const CCIDInterfaceInfo, + uint8_t slot, + uint8_t* const atr, + uint8_t* const attrSize, + uint8_t* const error) { if (slot < CCID_Interface.Config.TotalSlots) { @@ -176,7 +177,9 @@ uint8_t CALLBACK_CCID_IccPowerOn(uint8_t slot, /** Event handler for the CCID_PC_to_RDR_IccPowerOff message. This message is sent to the device * whenever an application at the host wants to send a power off signal to a slot. */ -uint8_t CALLBACK_CCID_IccPowerOff(uint8_t slot, uint8_t* error) +uint8_t CALLBACK_CCID_IccPowerOff(USB_ClassInfo_CCID_Device_t* const CCIDInterfaceInfo, + uint8_t slot, + uint8_t* const error) { if (slot < CCID_Interface.Config.TotalSlots) { @@ -194,7 +197,9 @@ uint8_t CALLBACK_CCID_IccPowerOff(uint8_t slot, uint8_t* error) * whenever an application at the host wants to the get the current slot status * */ -uint8_t CALLBACK_CCID_GetSlotStatus(uint8_t slot, uint8_t* error) +uint8_t CALLBACK_CCID_GetSlotStatus(USB_ClassInfo_CCID_Device_t* const CCIDInterfaceInfo, + uint8_t slot, + uint8_t* const error) { if (slot < CCID_Interface.Config.TotalSlots) { @@ -208,9 +213,10 @@ uint8_t CALLBACK_CCID_GetSlotStatus(uint8_t slot, uint8_t* error) } } -uint8_t CALLBACK_CCID_Abort(uint8_t slot, +uint8_t CALLBACK_CCID_Abort(USB_ClassInfo_CCID_Device_t* const CCIDInterfaceInfo, + uint8_t slot, uint8_t seq, - uint8_t* error) + uint8_t* const error) { if (CCID_Interface.State.Aborted && slot == 0 && CCID_Interface.State.AbortedSeq == seq) { |