This set of functions is for useful configuration query.
◆ Cy_SAR_IsChannelSigned()
bool Cy_SAR_IsChannelSigned |
( |
const SAR_Type * |
base, |
|
|
uint32_t |
chan |
|
) |
| |
Return true if channel result is configured for signed format, else false.
The formats for single-ended and differential channels are independent. This function will first check whether the channel is single-ended or differential.
- Parameters
-
- Returns
- If channel number is invalid, false is returned
- Function Usage
◆ Cy_SAR_IsChannelSingleEnded()
bool Cy_SAR_IsChannelSingleEnded |
( |
const SAR_Type * |
base, |
|
|
uint32_t |
chan |
|
) |
| |
Return true if channel is single ended, else false.
- Parameters
-
- Returns
- If channel number is invalid, false is returned
- Function Usage
◆ Cy_SAR_IsChannelDifferential()
__STATIC_INLINE bool Cy_SAR_IsChannelDifferential |
( |
const SAR_Type * |
base, |
|
|
uint32_t |
chan |
|
) |
| |
Return true of channel is differential, else false.
- Parameters
-
base | Pointer to structure describing registers |
chan | The channel to check, starting at 0. |
- Returns
- A false is return if chan is invalid.
- Function Usage