AN706-00040-2v0-E
60
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
”).
Parameter None
Return
value
None
Function
STATUS SW_GetStatus(uint8_t ButtonId, uint8_t *pStatus)
Overview
Switch status acquisition function
Parameter ButtonId Switch No.
0
Play/Stop switch
1
Song selection next switch
2
Song selection previous switch
pStatus
Pointer for place where switch status is stored
SW_NO_PUSH Not pressed
SW_PUSH
Pressed
Return
value
Processing results
SW_RET_OK
Normal completion
SW_RET_INVALID_PARAMETER Parameter error