OV5642 Mirror - Flip problem

Hi everybody

I have a problem with Arducam Uno Esp8266 shield with OV5642 module. I need to use functions Flip, Mirror, Mirror/Flip describe in OV5642 datasheet.

Mirror is running while impossible to Flip or Mirror/Flip the capture.

In OV5642_camera_module_software_application.pdf, it’s said for Mirror – Flip – Mirror/Flip

MIRROR
reg3818 = read_i2c(0x3818)
reg3818 = reg3818 | 0x00
reg3818 = reg3818 & 0x9f
write_i2c(0x3818, reg3818 )
reg3621 = read_i2c(0x3621)
reg3621 = reg3621 | 0x20
write_i2c(0x3621, reg3621 )

FLIP
reg3818 = read_i2c(0x3818)
reg3818 = reg3818 | 0x20
reg3818 = reg3818 & 0xbf
write_i2c(0x3818, reg3818 )
reg3621 = read_i2c(0x3621)
reg3621 = reg3621 | 0x20
write_i2c(0x3621, reg3621 )

MIRROR&FLIP
reg3818 = read_i2c(0x3818)
reg3818 = reg3818 | 0x60
reg3818 = reg3818 & 0xff
write_i2c(0x3818, reg3818 )
reg3621 = read_i2c(0x3621)
reg3621 = reg3621 & 0xdf
write_i2c(0x3621, reg3621 )

in my program.ino, i translate these instructions to :

uint8_t Reg3818;
uint8_t Reg3621;

//Mirror
myCAM.rdSensorReg16_8(0x3818, &Reg3818);
Reg3818 = Reg3818 | 0x00;
Reg3818 = Reg3818 & 0x9f;
myCAM.wrSensorReg16_8(0x3818 ,Reg3818);
myCAM.rdSensorReg16_8(0x3621, &Reg3621);
Reg3621 = Reg3621 | 0x20;
myCAM.wrSensorReg16_8(0x3821 ,Reg3621);

//Flip
myCAM.rdSensorReg16_8(0x3818, &Reg3818);
Reg3818 = Reg3818 | 0x20;
Reg3818 = Reg3818 & 0xdf;
myCAM.wrSensorReg16_8(0x3818 ,Reg3818);
Reg3621 = Reg3621 | 0x20;
myCAM.rdSensorReg16_8(0x3621, &Reg3621);
Reg3621 = Reg3621 | 0x20;
myCAM.wrSensorReg16_8(0x3621 ,Reg3621);

//Mirror et Flip
myCAM.rdSensorReg16_8(0x3818, &Reg3818);
Reg3818 = Reg3818 | 0x60;
Reg3818 = Reg3818 & 0xff;
myCAM.wrSensorReg16_8(0x3818 ,Reg3818);
myCAM.rdSensorReg16_8(0x3621, &Reg3621);
Reg3621 = Reg3621 & 0xdf;
myCAM.wrSensorReg16_8(0x3621 ,Reg3621);
myCAM.wrSensorReg16_8(0x3801 ,0xff);

Only Mirror in running fine while Flip and Mirror/Flip doesn’t work ( with no error ) obtaining black capture.

I asked Arducam support with no response at this time and OMNIVISION doesn’t respond to end users.

Does anybody test these functions with success ? If yes, appreciate your help

Regards