mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 01:58:00 +02:00
flippeddataoverxaxis changed to flipRows
This commit is contained in:
@ -474,7 +474,7 @@ void setupDetector() {
|
||||
// temp threshold and reset event
|
||||
setThresholdTemperature(DEFAULT_TMP_THRSHLD);
|
||||
setTemperatureEvent(0);
|
||||
setFlippedDataAcrossXAxis(0);
|
||||
setFlipRows(0);
|
||||
}
|
||||
|
||||
int resetToDefaultDacs(int hardReset) {
|
||||
@ -2003,19 +2003,19 @@ void alignDeserializer() {
|
||||
bus_r(ADC_DSRLZR_3_REG) & (~(ADC_DSRLZR_3_RFRSH_ALGNMNT_MSK)));
|
||||
}
|
||||
|
||||
int getFlippedDataAcrossXAxis() {
|
||||
int getFlipRows() {
|
||||
return ((bus_r(CONFIG_REG) & CONFIG_BOTTOM_INVERT_STREAM_MSK) >>
|
||||
CONFIG_BOTTOM_INVERT_STREAM_OFST);
|
||||
}
|
||||
|
||||
void setFlippedDataAcrossXAxis(int arg) {
|
||||
void setFlipRows(int arg) {
|
||||
if (arg >= 0) {
|
||||
if (arg == 0) {
|
||||
LOG(logINFO, ("Switching off bottom flipping\n"));
|
||||
LOG(logINFO, ("Switching off bottom row flipping\n"));
|
||||
bus_w(CONFIG_REG,
|
||||
bus_r(CONFIG_REG) & ~CONFIG_BOTTOM_INVERT_STREAM_MSK);
|
||||
} else {
|
||||
LOG(logINFO, ("Switching on bottom flipping\n"));
|
||||
LOG(logINFO, ("Switching on bottom row flipping\n"));
|
||||
bus_w(CONFIG_REG,
|
||||
bus_r(CONFIG_REG) | CONFIG_BOTTOM_INVERT_STREAM_MSK);
|
||||
}
|
||||
|
Reference in New Issue
Block a user