7.2.4.4
Switch Detection API
Function
void SW_Init (void)
Overview
Switch detection processing initialization function
Invoked before entering the main loop (see "7.2.8.1 Main Processing
Function").
Parameter None
Return
None
value
Function
STATUS SW_GetStatus(uint8_t ButtonId, uint8_t *pStatus)
Overview
Switch status acquisition function
Parameter ButtonId Switch No.
pStatus
Return
Processing results
value
SW_RET_OK
SW_RET_INVALID_PARAMETER Parameter error
0
Play/Stop switch
1
Song selection next switch
2
Song selection previous switch
Pointer for place where switch status is stored
SW_NO_PUSH Not pressed
SW_PUSH
Pressed
Normal completion
60
AN706-00040-2v0-E