I'm guessing you're asking if the parameter _values_ can be set to fixed values?
The documentation for inla.barrier.pcmatern claims you can, by setting the probability to NA:
"
prior.range
2 parameters (range0,Prange) for the prior spatial range. If Prange is NA, then range0 is used as a fixed range value (not tested).
prior.sigma
2 parameters (sig0,Psig) for the prior marginal standard deviation sigma. If Psig is NA, then sig0 is used as a fixed sigma value (not tested).
"
but as it says it hasn't been tested, so if you're running into a specific problem you need to provide more details.
But also note that there's a new implementation in INLAspacetime::barrierModel.define(), with a slightly different method for setting fixed values (0 instead of NA):
"
prior.range
numeric vector containing U and a to define the probability statements P(range < U) = a used to setup the PC-prior for range. If a = 0 then U is taken to be the fixed value for the range.
prior.sigma
numeric vector containing U and a to define the probability statements P(range > U) = a used to setup the PC-prior for sigma. If a = 0 then U is taken to be the fixed value for sigma.
"
If you're asking because something appears to not do what the documentation says, please provide more details.