| 
    PAN1080 Peripheral API
    
   | 
 
Kscan Interface. More...

Modules | |
| Kscan enable bit | |
| Kscan enable bit definitions.  | |
| Kscan interval clk cycle | |
| Kscan interval clk cycle definitions.  | |
Functions | |
| __STATIC_INLINE void | KS_Enable (KSCAN_T *ks, FunctionalState NewState, uint32_t func) | 
| This function is set keyscan enable bit.  More... | |
| __STATIC_INLINE void | KS_InputEnable (KSCAN_T *ks, FunctionalState NewState, uint32_t func) | 
| This function is set keyscan input enable function.  More... | |
| __STATIC_INLINE void | KS_OutputEnable (KSCAN_T *ks, FunctionalState NewState, uint32_t func) | 
| This function is set keyscan output enable function.  More... | |
| __STATIC_INLINE void | KS_IntEnable (KSCAN_T *ks, FunctionalState NewState) | 
| This function is used to check keyscan status.  More... | |
| __STATIC_INLINE bool | KS_StatusCheck (KSCAN_T *ks, uint32_t func) | 
| This function is used to check keyscan status.  More... | |
| __STATIC_INLINE void | KS_ClearFlag (KSCAN_T *ks, uint32_t func) | 
| This function is used to clear keyscan status.  More... | |
| __STATIC_INLINE void | KS_SetKeyscanPolarity (KSCAN_T *ks, FunctionalState NewState) | 
| This function is used to set keyscan polarity as high.  More... | |
| __STATIC_INLINE void | KS_ClearKeyscanStatus (KSCAN_T *ks, FunctionalState NewState) | 
| This function is used to clear all key status enable.  More... | |
| __STATIC_INLINE void | KS_SetFrameInterval (KSCAN_T *ks, uint32_t func) | 
| This function is used to set keyscan interval time between current frame to next.  More... | |
| __STATIC_INLINE uint32_t | KS_GetFrameInterval (KSCAN_T *ks) | 
| This function is used to get keyscan interval time between current frame to next.  More... | |
| __STATIC_INLINE void | KS_SetRowInterval (KSCAN_T *ks, uint32_t func) | 
| This function is used to set keyscan interval time between current row to next.  More... | |
| __STATIC_INLINE uint32_t | KS_GetRowInterval (KSCAN_T *ks) | 
| This function is used to get keyscan interval time between current row to next.  More... | |
| __STATIC_INLINE void | KS_SetDebounceTime (KSCAN_T *ks, uint32_t func) | 
| This function is used to set keyscan debounce time.  More... | |
| __STATIC_INLINE uint32_t | KS_GetDebounceTime (KSCAN_T *ks) | 
| This function is used to get keyscan debounce time.  More... | |
| __STATIC_INLINE void | KS_WaitScanFinish (KSCAN_T *ks, bool enable) | 
| This function is used to enable keyscan delay function,if enabled isr will reported after scan finish.  More... | |
| uint32_t | KS_ReadKeyRowInfo (KSCAN_T *ks, uint8_t rowIdx) | 
| This function is used to read key info.  More... | |
| bool | KS_IsKeyPressed (KSCAN_T *ks, uint8_t rowIdx, uint8_t colIdx) | 
| This function is used to read key info.  More... | |
Kscan Interface.
| __STATIC_INLINE void KS_ClearFlag | ( | KSCAN_T * | ks, | 
| uint32_t | func | ||
| ) | 
This function is used to clear keyscan status.
| ks | where ks is a keyscan peripheral base address | 
| func | status select KS_INT_FLAG_Msk KS_FLAG_Msk | 
| __STATIC_INLINE void KS_ClearKeyscanStatus | ( | KSCAN_T * | ks, | 
| FunctionalState | NewState | ||
| ) | 
This function is used to clear all key status enable.
| ks | where ks is a keyscan peripheral base address | 
| NewState | new state of all status clear | 
| __STATIC_INLINE void KS_Enable | ( | KSCAN_T * | ks, | 
| FunctionalState | NewState, | ||
| uint32_t | func | ||
| ) | 
This function is set keyscan enable bit.
| ks | where ks is a keyscan peripheral base address | 
| NewState | new state of the keyscan peripheral | 
| func | function select KS_PERIPHRAL_ENABLE  KS_WAKEUP_ENABLE KS_WAKEUP_AND_PERIPH_ENABLE  | 
| __STATIC_INLINE uint32_t KS_GetDebounceTime | ( | KSCAN_T * | ks | ) | 
This function is used to get keyscan debounce time.
| ks | where ks is a keyscan peripheral base address | 
| __STATIC_INLINE uint32_t KS_GetFrameInterval | ( | KSCAN_T * | ks | ) | 
This function is used to get keyscan interval time between current frame to next.
| ks | where ks is a keyscan peripheral base address | 
| __STATIC_INLINE uint32_t KS_GetRowInterval | ( | KSCAN_T * | ks | ) | 
This function is used to get keyscan interval time between current row to next.
| ks | where ks is a keyscan peripheral base address | 
| __STATIC_INLINE void KS_InputEnable | ( | KSCAN_T * | ks, | 
| FunctionalState | NewState, | ||
| uint32_t | func | ||
| ) | 
This function is set keyscan input enable function.
| ks | where ks is a keyscan peripheral base address | 
| NewState | new state of the keyscan peripheral | 
| func | function select,input range[7~0] | 
| __STATIC_INLINE void KS_IntEnable | ( | KSCAN_T * | ks, | 
| FunctionalState | NewState | ||
| ) | 
This function is used to check keyscan status.
| ks | where ks is a keyscan peripheral base address | 
| NewState | new state of the keyscan peripheral | 
| bool KS_IsKeyPressed | ( | KSCAN_T * | ks, | 
| uint8_t | rowIdx, | ||
| uint8_t | colIdx | ||
| ) | 
This function is used to read key info.
| ks | where ks is a keyscan peripheral base address | 
| rowIdx | row number select (0~23) | 
| colIdx | column number select (0~7) | 
| __STATIC_INLINE void KS_OutputEnable | ( | KSCAN_T * | ks, | 
| FunctionalState | NewState, | ||
| uint32_t | func | ||
| ) | 
This function is set keyscan output enable function.
| ks | where ks is a keyscan peripheral base address | 
| NewState | new state of the keyscan peripheral | 
| func | function select,input range[7~0] | 
| uint32_t KS_ReadKeyRowInfo | ( | KSCAN_T * | ks, | 
| uint8_t | rowIdx | ||
| ) | 
This function is used to read key info.
| ks | where ks is a keyscan peripheral base address | 
| rowIdx | row number select (0~23) | 
| __STATIC_INLINE void KS_SetDebounceTime | ( | KSCAN_T * | ks, | 
| uint32_t | func | ||
| ) | 
This function is used to set keyscan debounce time.
| ks | where ks is a keyscan peripheral base address | 
| func | interval time select Kscan interval clk cycle | 
| __STATIC_INLINE void KS_SetFrameInterval | ( | KSCAN_T * | ks, | 
| uint32_t | func | ||
| ) | 
This function is used to set keyscan interval time between current frame to next.
| ks | where ks is a keyscan peripheral base address | 
| func | interval time select Kscan interval clk cycle | 
| __STATIC_INLINE void KS_SetKeyscanPolarity | ( | KSCAN_T * | ks, | 
| FunctionalState | NewState | ||
| ) | 
This function is used to set keyscan polarity as high.
| ks | where ks is a keyscan peripheral base address | 
| NewState | new state of the keyscan polarity | 
| __STATIC_INLINE void KS_SetRowInterval | ( | KSCAN_T * | ks, | 
| uint32_t | func | ||
| ) | 
This function is used to set keyscan interval time between current row to next.
| ks | where ks is a keyscan peripheral base address | 
| func | interval time select Kscan interval clk cycle | 
| __STATIC_INLINE bool KS_StatusCheck | ( | KSCAN_T * | ks, | 
| uint32_t | func | ||
| ) | 
This function is used to check keyscan status.
| ks | where ks is a keyscan peripheral base address | 
| func | status select KS_INT_FLAG_Msk KS_FLAG_Msk | 
| __STATIC_INLINE void KS_WaitScanFinish | ( | KSCAN_T * | ks, | 
| bool | enable | ||
| ) | 
This function is used to enable keyscan delay function,if enabled isr will reported after scan finish.
| ks | where ks is a keyscan peripheral base address | 
| enable | new state of the keyscan scan status |