ADS-B Out transmits the same squawk code as set on the transponder. There is no "non-specific" code.
Mode S transponders with ADS-B Out use the code directly in their extended squitter. UAT ADS-B Out typically captures the code by receiving the transponder signal and decoding the squawk code.
ATC can't see any code other than the one you set.